Anybody know of a way to generate a link to a cust...
# suitescript
c
Anybody know of a way to generate a link to a custom record's online form so that they can come back and edit the form with the underlying data defaulted in?
a
Take a look at: •
url.resolveRecord
c
Yeah, that was the first thing I looked at too, but I don't see any parameters that indicate you can use it to get an external online form URL - essentially need this publishable form URL, but with an existing record's internal ID passed in so it's field values are defaulted.
e
You can pass parameters in the URL. I've done something similar with an online customer form something like this in an email template: #if entity.billzip?has_content#assign url_parameters += '&zipcode=${entity.billzip}'//#if a href="${form_url}${url_parameters}" target="_blank" rel="noopener" I found the formatting a bit odd when the parameters being passed are the field IDs, so I wrote a client script attached to the form which parses parameters which have a prefix into the appropriate field (parameter example_zipcode fills in to field with ID zipcode, etc). Not sure if you can pass the internal ID of a record and have it fill in data from the record, that strikes me as a security risk to have a publicly-accessible form able to do that, but you can absolutely pass individual fields
c
Thanks! That did the trick! Made a field for the "Previous Application", tacked that onto the external URL, and sourced all the other fields from that field. Search/duplicate functionality of online forms then allowed for update of an existing form.