Skip to main content
Nintex Community Menu Bar

Set value of Single Line Text field based on Choice List

  • February 26, 2020
  • 6 replies
  • 444 views

Forum|alt.badge.img+4

I have a choice list field called "ExpenseType" with options Meals and Parking.

I have a single line text field called "ExpenseCost".  I want this field to be editable (cannot be a calculated field).

 

When I select "Meals" from the choice list, I want the "ExpenseCost" field to be automatically populated with "$20".  When "Parking" is selected, I want the field to be populated with "$10".

 

Do I need to use Javascript to do this?  Can someone point me in the right direction?

6 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • February 26, 2020

Hi,

 

Only a responsive form will allow you to set the valuer on a Single lines of text control.

Set a rule like:

I have attached my form that demonstrates this concept.

 


Forum|alt.badge.img+4
  • Author
  • Rookie
  • February 26, 2020

Thanks Simon, but is there anyway of doing this using the Classic Forms?


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • February 26, 2020
Unfortunately classic forms does not have the set value feature.
This will need to be done with Javascript.

Forum|alt.badge.img+4
  • Author
  • Rookie
  • February 27, 2020

Can anyone help with the Javascript to accomplish this in Classic mode?


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • February 27, 2020

Neilinna
Forum|alt.badge.img+1
  • February 1, 2022
Thanks so much for this! 🙂