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 1647 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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 08, 2013 @ 18:03
    Tim Geyssens
    1

    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 1647 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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 08, 2013 @ 18:30
    Tim Geyssens
    1

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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 09, 2013 @ 10:37
    Tim Geyssens
    100

    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 1647 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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 09, 2013 @ 10:55
  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Oct 09, 2013 @ 12:25
    Ali Sheikh Taheri
    0

    Thanks Tim, It works like a charm

    Cheers

    Ali

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 09, 2013 @ 12:43
    Tim Geyssens
    0

    Sweet thanks for confirming :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies