Skip to main content
Nintex Community Menu Bar

Set value of Single Line Text field based on Choice List

  • Feb 26, 2020 3:56 AM UTC
  • 6 replies
  • 488 views
  • Translate All

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

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Feb 26, 2020 5:52 AM UTC

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.

 

Translate

Forum|alt.badge.img+4
  • Author
  • Rookie
  • Feb 26, 2020 1:55 PM UTC

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

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Feb 26, 2020 10:00 PM UTC
Unfortunately classic forms does not have the set value feature.
This will need to be done with Javascript.
Translate

Forum|alt.badge.img+4
  • Author
  • Rookie
  • Feb 27, 2020 3:55 AM UTC

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

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Feb 27, 2020 3:59 AM UTC

Neilinna
Forum|alt.badge.img+1
  • Feb 1, 2022 9:36 PM UTC
Thanks so much for this! 🙂
Translate