AnsweredAssumed Answered

Set (other) fielf mandatory from ftl template

Question asked by wadsok on Sep 15, 2014
Latest reply on Sep 16, 2014 by sanket
Is it possible to set other form field mandatory from JS in ftl template like:

      function updateChanges${field.name?substring(5)}() {
          window.alert("function started");
          var propertyList = ("${field.control.params.filteredProperty}").split(",");
          document.getElementById("${args.htmlid}_prop_" + propertyList[0]).mandatory= false;
         return false;
      }
This one doesn't work, but function gets called.

Outcomes