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

Question

Question

Refresh Required Field Warning When Input Populated by Javascript

asked on February 16, 2017

I have a read-only field that is being populated by Javascript.

I have the field flagged as required, because certain actions need to be completed before moving to the next stage.

Based on actions the user takes in the form, the value in the field changes to several different items, which can include changing it back to blank (that is the point I want it to track the requirement).

I'm hitting an issue, when it is changed to blank, the warning about it being a required field appears, but when it changes back to something else, the warning doesn't go away.

Does anyone know how to trigger that required field warning to refresh via Javascript?

I'm in version 10.2

Thank you!

0 0

Answer

SELECTED ANSWER
replied on February 16, 2017

Use script like this:

$("#Field3").trigger('updatevalidation')

 

1 0

Replies

replied on February 16, 2017

Thank you @████████!

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

Sign in to reply to this post.