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

Question

Question

Forms - set field to invalid javascript?

asked on March 2, 2016 Show version history

Is there an option to set a field to invalid / valid with javascript outside of using the built in constraints. In this case we want to perform a calculation and if we don't get the result we want then we want the field to become invalid, else set the field back to valid. 

0 0

Replies

replied on March 2, 2016

What behavior do you want for Invalid vs. Valid? Changes in style/color/background? Disable or Re-enable the input box? Show or Hide?

You can do any of these with some combination of Javascript/CSS. You need to be more specific.

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

Sign in to reply to this post.