USING A UI ACTION TO UPDATE MULTIPLE FIELDS

aarondrew
Kilo Contributor

Hello, I'm new to the servicenow platform. I am going through some excercises and trying to update the 3 description fields on a table using a UI button.

Im simply trying to change the fields "Apples", "Muffins", and "Cookies" to say "Expense Report Launch Part - Expense Report Item", each items number and then what that item is. I want to be able to change them to say this when i push the "Change Description" Button

Im not sure my logic is working in this code correctly.

Screen Shot 2016-02-03 at 5.09.51 PM.png.

Screen Shot 2016-02-04 at 9.05.49 AM.png

Screen Shot 2016-02-04 at 9.08.40 AM.png

Screen Shot 2016-02-04 at 9.11.04 AM.png

Any help would be greatly appreciated. Thank you.

1 REPLY 1

srinivasthelu
Tera Guru

Hi Aaron,



Below code would suffice to change selected record.




current.description="Expense Report Lunch part- blah"+current.description;


current.update()



Thanks


Srini