cancel
Showing results for 
Search instead for 
Did you mean: 
gwpeters
Nintex Newbie

Populate a choice field based off the value in another choice field.

Jump to solution

I am trying to make clothing order form. Shirts with different styles are available in different colors. What I want to do is when shirt style "X" is chosen i want my color options field to then display the colors that are available for that style. 

Below is my form and the code that I am trying to use to do this, I may be completely off with the code attempt, i was using another source as a reference to come up with this. Once I figure this out for once style I need to do this for 4 other styles and I'm not sure how to do that. 

2020-01-14_11-18-10.png

NWF.FormFiller.Events.RegisterAfterReady(function () { 
   NWF$('#'+varShirtStyle).change(function(){
     if (NWF$('#'+varShirtStyle + ' input:choice').val() == 'Instructor'){
        NWF$('#'+varShirtColor).val('Red');
     }
   })
})

 

 

Labels: (1)
Tags (2)
0 Kudos
Reply
3 Replies
Automation Master
Automation Master

Re: Populate a choice field based off the value in another choice field.

Jump to solution

@gwpeters ....have you consider using a seperate list and using lookup controls create a cascading dropdowns?

0 Kudos
Reply
gwpeters
Nintex Newbie

Re: Populate a choice field based off the value in another choice field.

Jump to solution
I thought about that but figured there had to be a better way than that for this task.
0 Kudos
Reply
gwpeters
Nintex Newbie

Re: Populate a choice field based off the value in another choice field.

Jump to solution

I have decided to take a different approach to this, I will ask in a new post. 

View solution in original post

0 Kudos
Reply