custom item form issues

More
10 years 2 days ago #50618 by Partridge
Hello,

FC 2.2.0 r1974, Joomla 3.3.4.

I tried setting up a link for a public user to create an item with an automatically set up type id, main category, and preferably a subcat id as well. Following www.flexicontent.org/documentat ... elect.html

I did:
/index.php?option=com_flexicontent&controller=items&task=items.add&maincat=8&typeid=3
Ive also tried (&typeid=3 and other variations of maincat, catid, cid, item_id, etc).

This results in a form with the correct item type and category however on submit throws a 500 error with zero other errors shown. The item does show up in the backend administration side but does not have any category/subcategory attached and none of the fields filled out in the form, only title, state, and type come through. According to the POST output all fields are sent (eg form-data name="custom[town][] = asdf".

As a secondary attempt I tried customizing the form.php, the idea being to link a generic item entry form where you input the document type id which would then autoselect both category and sub category. Whereupon you would click 'apply type' and move onto the rest of the form. I have not been able to replicate this ability in either the FC backend nor with jquery in the form.php itself (eg, setting a hidden field with jform_catid, nor, eg, setting the jform_catid select option with jquery). It throws an error on validate -> validatefield -> 'RuntimeException' with message 'Field required: FLEXI_PRIMARY_CATEGORY' in .../html/libraries/joomla/form/form.php:1958

I can successfully enter an item by manually selecting document type, primary category, secondary category, applying title, and then continuing with the form from there. The POST log is very similar to the above 500 POST log but obviously successful instead.

I am getting no JS errors.

Please help!

Please Log in or Create an account to join the conversation.

More
10 years 1 day ago #50620 by ggppdk
Replied by ggppdk on topic custom item form issues
Hello

please update to

v2.2.0 stable
or
v2.2.1 RC


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 1 day ago #50624 by Partridge
Replied by Partridge on topic custom item form issues
Upgraded to 2.2.1 rc and everything seems to be working, thank you very much for your time!

(I wish I had asked earlier now!)

Please Log in or Create an account to join the conversation.

More
10 years 1 day ago #50630 by ggppdk
Replied by ggppdk on topic custom item form issues
Hello

please see a PM that i have sent you

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.306 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline