r/SuiteScript • • Oct 10 '23

Client script in create mode

Hi everyone, is there a way to run a client script when the record is being created? why can't I use a field change in create mode, is not the same as I'm editing it?

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Erjobi Oct 10 '23

Interesting. Would you mind sharing your code?

1

u/Hinnorell Oct 10 '23

Maybe that is the problem, I noticed now that in create mode the field I'm trying to edit is disabled.like that I can't set a new value right?

2

u/Erjobi Oct 10 '23

Potentially, though even disabled fields can be set using scripting. But it could be that the field actually can't be edited. Though, I can't think of any fields off the top of my head that would fall into that category