How can I create a View link field on a custom rec...
# general
r
How can I create a View link field on a custom record? I tried using hyperlink and inline html, but it doesn't appear I can call {internalid} of the record itself.
s
You want to create a hyperlink on a custom record to view what?
r
The record. The sublist only shows Edit.
s
Oh this custom record is a child, and you want a View link to show up on the custom record sublist on the parent?
r
Yes, a compliance record sublist on customer.
s
You have tried hardcoding the url string in a default value on the field definition?
r
Yes, the default values don't have internalid. They don't appear to have anything related to the record itself.
s
{recordid}
r
I do see that as ID... I'm getting an error for some reason.
<a href="<https://1272308-sb1.app.netsuite.com/app/common/custom/custrecordentry.nl?rectype=623&id={recordid}>">View</a>
Your formula has an error in it.
s
is that the exact text you put in there? Try something like
Copy code
`<a href="<https://1272308-sb1.app.netsuite.com/app/common/custom/custrecordentry.nl?rectype=623&id=>' || {recordid} || ">View</a>`
✔️ 1
you need to end/start the strings around the
{recordid}
part
r
Oh, right. I've seen this before. Thanks
s
You should be able to also make it a hyperlink field instead of doing the inlinehtml stuff around it
💯 1
r
Works. thanks
👍 1