Hi Guys, I'm setting values to two field 1. date 2...
# suitescript
n
Hi Guys, I'm setting values to two field 1. date 2. text value under a sublist there are two field where I'm setting the values. But I want to set them for every new line whenever we add a line on that new line these two values should automatically get updated using Client Script. When I click on add on the new line the current date and Milestone 2 should get set. Please help me here! Attached is the SS of form where I want to set the two values:
b
you should describe what its doing now
i cant image anything normal happening with the code selecting a new line and committing it
n
Hi @battk, Sorry, the code was giving me kind of error but I need to update/set the Milestone Date and Forecast Milestone fields.
b
pick when you want the fields to be set, then use the matching entrypoint
you will probably only need to use CurrentRecord.setCurrentSublistValue
n
yah, I'm using this setCurrentSublistValue, but the issue is I want to set it on every new line of this Forecast sublit (shown in image) while creating the record. Please let me know, How I can set the values to every new line?
b
pick an appropriate entry point. put your code in there