Copied to clipboard

Flag this post as spam?

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


  • joyefox 25 posts 95 karma points
    Mar 19, 2013 @ 16:22
    joyefox
    0

    Contour conditional logic - Empty field value when hidden

    Hi all,

    I'm using Contour (v3.0.9 with Umbraco v4) conditional logic rules in order to hide/show some fields. I saw that when a field is hidden by the conditional logic rule it maitains its value. Is there a way to empty the field value when field is hidden by the conditional logic rule?

    Any help will be appreciated.

    Regards

    Matteo

     

  • Comment author was deleted

    Mar 19, 2013 @ 16:27

    You'll have to customize the script then \Umbraco\plugins\umbracoContour\Views\Script.cshtml and add some extra js

  • joyefox 25 posts 95 karma points
    Mar 19, 2013 @ 17:15
    joyefox
    0

    Ok Tim,

    thanks for the hint.

    I've customized the CheckRules function rows that apply the hide logic to the field, into the Script.cshtml file.

    Regards

    Matteo

  • Comment author was deleted

    Mar 20, 2013 @ 08:31

    Great :) 

Please Sign in or register to post replies

Write your reply to:

Draft