Multiple Lines of Text – On Change

Forums Classic DFFS Multiple Lines of Text – On Change

Viewing 1 reply thread
  • Author
    Posts
    • #20820
      Kasey
      Participant

      Is there an easy way to identify when a :multi cascading dropdown value has changed? Multiple Lines of Text fields are not available in the trigger rules. I need to identify when an item has been added or removed and if a specific option has been selected in order to hide/show fields/tabs.

    • #20836
      Alexander Bautz
      Keymaster

      Hi,
      I haven’t been able to add the multiline field as a trigger yet, but you can add this to your Custom JS:

      var currMultiVal = getFieldValue("YOUR_FIELDINTERNAL_NAME");
      setInterval(function(){
          var val = getFieldValue("YOUR_FIELDINTERNAL_NAME");
          if(currMultiVal !== val){
              currMultiVal = val;
              alert("Changed!");
              if(val.indexOf("Magic option value") > -1){
                  alert("Contains the magic option value!");
              }
          }
      },1000);

      Where I have added the alerts you can insert your code, call a function or trigger a rule.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.