How to Prefill Form Fields with URL Parameters

Hi, is it possible to prefill form fields with URL parameters in NetSuite? I tried using the syntax ‘base_url?fieldname1=value&fieldname2=value’ but it doesn’t seem to be working.

Beginner Asked on September 16, 2019 in SuiteScript.
Add Comment
3 Answer(s)

Im actually not sure where its documented since I learned it in the slack channel but:

base_url?record.fieldname1=value&record.fieldname2=value

Advanced Answered on September 16, 2019.
Add Comment

When you say ‘record.fieldname1’ do you mean the record ID or the record type (e.g. ‘rectype=493’)? If it’s the ID, I’m not sure how I’ll do that since I’m trying to do this upon record creation, which means there is no ID yet.

Beginner Answered on September 16, 2019.

Just the text “record”, e.g. if you want to default the Memo field on a Sales Order to say “hello” you would use the url “/app/accounting/transactions/salesord.nl?record.memo=hello”

on September 16, 2019.

P.S. it’s better to post follow up questions as comments on the answer instead of new “answers”. Answers are by default sorted by votes so the thread can become hard to follow if answers are used as replies..

on September 16, 2019.

It worked, thanks! And yeah, someone mentioned that before. I just keep getting thrown off because there’s a spot for “Your Answer” at the bottom which always makes me think that’s where I need to respond. But I’ll try to keep that in mind. Thanks again.

on September 17, 2019.
Add Comment

you need to put the field id’=’ and the acceptable value for the specific field at the end of the Page URL. this trick does work for few selected standard fields only.

Rookie Answered on September 17, 2019.

Thanks. Got it working now!

on September 17, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor