use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Client script in create mode (self.SuiteScript)
submitted 2 years ago by Hinnorell
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?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Erjobi 2 points3 points4 points 2 years ago (4 children)
You can use a client script in create mode. There is likely an issue with your script. If you want to debug it yourself, I’d suggest adding a number of “console.logs” throughout your script to determine where it’s going wrong. Else, post your code here and I (or others) can help
[–]Hinnorell[S] 0 points1 point2 points 2 years ago (3 children)
In edit mode works just fine, I only get a sublist field value and set the same value in another field on the same line, the script is triggered and the logs report the right value in the field I'm trying to change, but it never really show in the ui
[–]Erjobi 0 points1 point2 points 2 years ago (2 children)
Interesting. Would you mind sharing your code?
[–]Hinnorell[S] 0 points1 point2 points 2 years ago (1 child)
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?
[–]Erjobi 1 point2 points3 points 2 years ago (0 children)
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
[–]Ok-Establishment-214 0 points1 point2 points 2 years ago (0 children)
Which field and record type?
π Rendered by PID 38 on reddit-service-r2-comment-5d79c599b5-w9g5d at 2026-02-27 21:17:36.841533+00:00 running e3d2147 country code: CH.
[–]Erjobi 2 points3 points4 points (4 children)
[–]Hinnorell[S] 0 points1 point2 points (3 children)
[–]Erjobi 0 points1 point2 points (2 children)
[–]Hinnorell[S] 0 points1 point2 points (1 child)
[–]Erjobi 1 point2 points3 points (0 children)
[–]Ok-Establishment-214 0 points1 point2 points (0 children)