You are viewing limited content. For full access, please sign in.

Question

Question

Forms - Initiate Field Rules update with Javascript

asked on May 19, 2017 Show version history

I thought field rules were always monitoring but I am finding that if the value of a field required for a field rule is set by javascript, the field rules monitor does not see it. How do you re-initiate the field rules update?

0 0

Answer

SELECTED ANSWER
replied on May 19, 2017

Hi Chad,

You just need to add ".trigger('change')" to your line of javascript setting the field value.

 

For example:

$(document).ready(function() {
  $('#Field1').val('Something').trigger('change');
});

 

2 0
replied on May 19, 2017

That helps in so many ways! Thank you!

0 0
replied on September 21, 2020

is there a notification for Trigger("Change") that can be activated in Forms process? in my console... it shows a get request status of 500 and returns Notification have been disabled. I think this has to do with the email notification that i didnt set up set up yet.

Im curious if Trigger("change") will create a notification to the "User assigned to task" or "Initiator of BP" in addition to the initial email notification when forms gets created and assigns it to a user and that user gets that email. 

0 0
replied on September 21, 2020

The Trigger('change') method only lets the browser know that a field was changed (which also happens when the user manually changes a field value).

Sending emails would be done in the process modeler

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.