cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if a form field has been changed by the user

Former Member
0 Kudos

I think I am having a brain ****, but I can't figure this one out.

I would like to keep my Submit button inactive UNTIL a user makes a change to any of the fields on the form. This would keep them from accidently submitting the form with duplicate information.

Anyone know how to dynamically check if a field has been changed?

This would be simple with Javascript, but VC, not so much.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Follow the steps -

1. Right click on 'Submit Button' & go to configure element.

2. In 'General Tab' there is option 'Disabled' check that option.

3. click on the 'Condition' button after that & enter the following condition.

bool(if(@required field=="",true,false))

it means if your required field is blank then 'Submit Button' will be disabled & you will not be able to Submit information.

Please let me know if you are looking for something else.

Regards

Sandeep

former_member610333
Participant
0 Kudos

Thanks for the feedback..

Unfortunately, its not exactly what I was looking for.

The fields are prepopulated with data from the backend. I need to figure out if the user CHANGED the data in the fields..

Former Member
0 Kudos

Hi,

Maybe you can save the values that come from the backend as Data Store Variables, and then - in the "Disabled" dynamic expression, compare against those values

IF (@RequiredField == STORE@RequiredField, .........)