I have a user event button (edit mode) -> clien...
# suitescript
k
I have a user event button (edit mode) -> client script -> restlet setup, where the restlet is trying to
record.submitFields
, two document fields, two free-form text fields, on the currently open record in edit mode anyone see an issue with this setup? the fields are neither being updated nor is the restlet that's trying to do the submitFields throwing any error 🤔
b
you can try sharing your code, but nothing about it sounds wrong, except for the necessity of reloading the page since the current record will be outdated after the submitFields is successful
k
well it looks like I'm able to edit it when I make the custom transaction body field's default access level "Edit," but ideally i'd like the field to be read-only but still let the restlet make the changes
makes sense if that's how the restlet is just using the passthrough permissions from the user accessing the record which means I'd have to add yet another step like task calling a scheduled script or something to edit the fields and having the ss run as administrator? seems overly complex
b
use a suitelet'
k
that's a good idea - it looks like I can also change the custom field's display (in the custom transaction form) to inline text