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

Question

Question

JQuery and Field Rules

asked on November 21, 2014

Hi,

I'm currently setting up a form to use authentication codes and field rules.  The form routes through several user tasks for further input. By default this "Authentication" Field will retain the information from the last submission, so I added a "$("#q1 input").val("");" line in my "$(document).ready" section.  This works as intended, the page loads and the authentication field is empty.

The issue I have right now is that the field rules aren't applying when the field gets emptied by jquery.  The only thing the user should see when the authentication field is empty is the authentication field, but it's still showing the fields leftover from the previous code.

Is there a way to make the form think a user emptied the field?  I'm not sure how the language behind field rules works, but this function doesn't seem to be triggering them.

 

Thanks!

0 0

Answer

SELECTED ANSWER
replied on November 21, 2014

i believe it's something like this:

$("#q1 input").trigger("change");

 

1 0
replied on November 21, 2014

Thanks Kenneth!

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.