I am having multiple form on a single page which loads them all and based on user selection on drop down list we show and hide the form.
The problem is, because we have multiple forms on the same page. Contour is generating a script (CheckRules() JS function) for each form to handle conditional fields but only the script associated with the last form is being used.
multiple contour form on a single page
Hi
I am having multiple form on a single page which loads them all and based on user selection on drop down list we show and hide the form.
The problem is, because we have multiple forms on the same page. Contour is generating a script (CheckRules() JS function) for each form to handle conditional fields but only the script associated with the last form is being used.
any help is really appreciated.
Thanks
Ali
Comment author was deleted
Mkay sounds like a but will look into a solution tomorrow, should be easy I'll just add the form guid to the method so each form has it's own method
Thank you Tim,
I know I have to update Script.cshtml and just add @Model.FormId
but where else do I need to update for the function to be called?
Cheers
Ali
Comment author was deleted
Will have a look tomorrow, don't have the code here atm
Comment author was deleted
Ok can you upgrade to http://nightly.umbraco.org/Umbraco%20Contour/3.0.18%20WIP/
And let me know if that fixes the issue
Thank you!
In order to upgrade do I just need to download "UmbracoContour3.0.18 WIPupdate.zip" and copy everything to my solution, will that be enough?
I am using v3.0.12.
Cheers
Ali
Comment author was deleted
Yup, check http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade
Thanks Tim, It works like a charm
Cheers
Ali
Comment author was deleted
Sweet thanks for confirming :)
is working on a reply...