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?
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
You'll have to customize the script then \Umbraco\plugins\umbracoContour\Views\Script.cshtml and add some extra js
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
Great :)
is working on a reply...