I'm in the process of creating a website, and I'm having a bit of trouble due to the lack of documentation for Chronoforms version 4 (which I have to use because my site's based on Joomla 1.6).
I'd like to link many different articles to a form that needs to be customized to each article. What is the best way to do this-—by creating a form for each article, or is there another way to dynamically change form fields?
Hi M1ke,
You can pick up the Menu ItemID or the article id (a little more difficult) using Custom Code and use that info to customise your form.
Bob
Thanks for the reply, GreyHead. Do you mean that it's possible to have one form that changes based on information from the article it's placed in?
Would the tutorials for the older version help me at all, and when you say custom code, do you mean going into the HTML section of the forms manager? I'm a bit lost and overwhelmed; any direction you can give me here would be much appreciated.
Hi M1ke,
Can you give me a bit more detail about how you want to customise the forms please?
In CFv4 there are Custom Code blocks that you can add to do extra calculations or look-ups.
In CFv3 you would add the PHP to the Form HTML box.
There aren't any full tutorial that I recall on this; there are some small sections in The ChronoForms Book; some posts here; and some stuff in my head.
The CFv3 Tutorials are pretty much all still valid in the way the forms interact with Joomla! So the code examples are (mostly) still good. What has changed a lot is the ChronoForms work-flow and the admin interface.
Bob
Ah, OK, I see the drag-and-drop custom element option. Well, I'm wanting to use the form as a way for customers to order prints. There'd be an "order prints" link on the image article page, and when clicked it would pop up a form with various options and the title field already populated. Pretty much the only dynamic field needs to be the image title (to come from the title of the article).