Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 08, 2013 @ 11:55
    Ali Sheikh Taheri
    0

    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

    Oct 08, 2013 @ 18:03

    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

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 08, 2013 @ 18:19
    Ali Sheikh Taheri
    0

    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

    Oct 08, 2013 @ 18:30

    Will have a look tomorrow, don't have the code here atm

  • Comment author was deleted

    Oct 09, 2013 @ 10:37

    Ok can you upgrade to http://nightly.umbraco.org/Umbraco%20Contour/3.0.18%20WIP/

    And let me know if that fixes the issue

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 09, 2013 @ 10:47
    Ali Sheikh Taheri
    0

    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

    Oct 09, 2013 @ 10:55
  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 09, 2013 @ 12:25
    Ali Sheikh Taheri
    0

    Thanks Tim, It works like a charm

    Cheers

    Ali

  • Comment author was deleted

    Oct 09, 2013 @ 12:43

    Sweet thanks for confirming :)

Please Sign in or register to post replies

Write your reply to:

Draft