RE: 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.

mmascitto Beginner Asked on September 16, 2019 in SuiteScript.
Add Comment
3 Answers

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

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.