Hello, how do I get the value of a script field pa...
# suitescript
p
Hello, how do I get the value of a script field parameter in an aftersubmit script? I keep on getting an error that ReferenceError: "getParameter" is not defined
t
why do you want to get the script parameter after?
p
I have a script that I need to use for multiple transaction types and I am trying to pass the transaction type through a parameter. is there a better way to get the transaction type?
b
Share the code
p
I changed the code to get the enum value of the transaction and that worked
👍 1
c
You can look at the record.type (or whatever) then convert that to the record.Type.ENUM for each type of tran