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!