Skip to main content

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?

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.



 


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


Unfortunately classic forms does not have the set value feature.
This will need to be done with Javascript.

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


There are a lot of threads on this forum for this.

e.g https://community.nintex.com/t5/Nintex-for-SharePoint/Setting-a-form-field-value-based-on-choice-value-with-Javascript/m-p/57772

Thanks so much for this! 🙂

Reply