I´m trying to join 2 forms made with chornoforms v5 into a new form copying both codes that have been made with the designer. It looks ok but the events that hide/show different fields don´t work. I think that there is a javascript written anywhere but I don´t Know where to look for this code to join in the new form code. I think It will be possible to load this javascript in the "on load" field setup panel.
If you could help me I would be very thankful.
Sincerely.
Hi belga77,
The fields events are saved in the fields settings and are dependent on the fields names and ids, copying the generated code will simply create a custom code form, which doesn't know about any designer fields or fields events, your form must be recreated, take the bigger form and modify it to include the smaller form fields, you can do this with a copy in case anything went wrong!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ok. I think i would do that. I thought that the events could save as a JavaScript code anywhere and i would be able to copy it and paste into a JavaScript code in the "on load" setup settings
No, the events js code is generated on the fly when the form is displayed based on the fields settings.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ok, so in the wizard code generated isn´t there a code to be found or any field that can be used to run th js code on the fly? Then How is the component able to know when or what to use as a event? Perhaps in the mysql table?
You may try to test the form and copy the js code from the page source, but the code will be dependent on the fields ids, so any changes to that will break the code!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Yes, I´ve tried to do it. I checked the source code of the page and copied the javascript into a custom code in "Load javascript" panel dragged in to "On Load" box. But I got something strange, the forms displayed ok but the show pattern events didn´t worked although hidden events worked fine. I don´t know why.
I'm not sure, the events code is dependent on the fields ids, please double check they are still matching!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.