Hi, I am redirecting to a Custom Record and wanted...
# suitescript
k
Hi, I am redirecting to a Custom Record and wanted to set some default values on that custom record after redirecting in create mode. Can anybody suggest to me how to do it? Thanks In Advance!
s
Append params to the url, and read those params when the page loads
m
did you try to append a
parameters:
block to it? you can definitely use it to pass params to the URL, so if you use something like
record.myfield : 'myvalue'
, it should work
yep - you don't even need to read them - NetSuite will do that for you : )
k
i have tried putting value in the param it self but it is not working. do i need to write script to get the value from the param?
i have writtern in this way in ULR /app/common/custom/custrecordentry.nl?rectype=123&fieldid=value
b
/app/common/custom/custrecordentry.nl?rectype=123&record.fieldid=value
literal syntax for the parameter is record.{fieldId}