Multiple Lines of Text – On Change

Forums Dynamic Forms for SharePoint Multiple Lines of Text – On Change

This topic contains 1 reply, has 2 voices, and was last updated by  Alexander Bautz 5 months, 3 weeks ago.

  • 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

You must be logged in to reply to this topic.