How can I get the id of the current form in before...
# suitescript
w
How can I get the id of the current form in beforeLoad (view)?
I can use search.lookupFields() for 'customform'. But wouldn't that just give me what is stored with the record. Not if a specific role has a preferred form? Guess I'll have to trial and error that.
e
Why do you need to know the form?
w
I had setup a config-record that holds record type and form id. This setup record also has children with fieldid and fieldtype. This setup record is used to allow direct edits of fields in view-mode. I planned to make it possible to set it up per form. But for now, I scrapped it.
It's using a modified version of @netsuite_insights's Dialog-script.
❤️ 2