Update value depending on previous field

  • 28 May 2020
  • 1 reply
  • 3 views

Badge +3

I have been trying to update a field value which pulls in from another list.

 

I have been using JS but don't seem to be getting anywhere :

 

I have been using :

 

NWF.FormFiller.Events.RegisterAfterReady(function () {
NWF$('#'+vartest1).change(function(){
if (NWF$('#'+vartest1 + ' input:checked').val() == 'Not Available'){
NWF$('#'+vartest2).val('Please Ignore');
}
})
})

 

So l have 2 columns that have information pulled in from another lists. But now l want to update field 2 automatically just for 1 option in first field. The rest can continue as normal so user selects option in Column 1 and then in Column 2.

So when user selects "Not Available" in first field that should automatically update 2nd field with "Please ignore" but as the options are drop down and pulled in from different lists l think that is causing issues.


1 reply

Userlevel 5
Badge +14

Can  you provide us with some more information about the types of Controls these are, or a screenshot of what *is* happening vs. what you'd like to happen? 

You're saying that they are 'pulling in data from another list'. Does this mean that you're using a Lookup Control, and you're trying to set it's value based on the value of a different control that he user will be interacting with? 

It's difficult to help without more info. 

Reply