Hi Is it possible to have certain fields pre-popul...
# suitescript
v
Hi Is it possible to have certain fields pre-populated on an online lead/customer form? For example, I would like the company name to be a read only field with a value already in there However, I can't seem to do that for online customer/lead forms Is it possible to do? If yes, what field names should be passed in the URL? for example, if company name is passed in the parameter thanks
n
That id looks wrong. why does it have "_fs" have you been inspecting the page and trying to use the id from the page element?
v
I tried the internal id of the field (companyname) and that didn't work. Neither did 'entity' That field was what showed up on the console: I was trying a bunch of different combinations and then started wondering if it is even possible to pass parameters to an online lead/customer form?
m
Try
record.companyname
. That works for regular record pages
🤔 1
v
I tried that right now :
I saw a similar request on Stack Overflow though couldn't quite understand the proposed solution: https://stackoverflow.com/questions/38860599/netsuite-online-html-form-is-there-a-way-to-map-current-customer-fields-to-onli
b
deploy a client script on the form, and set the field in the pageInit
that said, Passing Parameters Through URLs tells which parameters can be set via the url
👍 1
v
Thanks battk. That link is really useful. I'll try the client script suggestion. Thank you