Hi Guys, I hope you are doing good, How do i show ...
# suitescript
m
Hi Guys, I hope you are doing good, How do i show below HTML tags in custom record type on the basis of field value, do I need to create another HTML field?
b
need to share more context
basic answer is that you will probably require scripting for dynamic content
m
yes
@battk I want to show this thing
b
that actually makes less sense
m
on custom recordtype po requisition on the basis of status. if the status is approved i wanna show in green, if status isrejected i wanna show in red.
b
that isnt a custom record
m
@battk yeah i know this is not a custom record. but po requisition is custom record
b
if you want to show something like the status on a transaction, then you need to use javascript to do dom manipulations
m
ok, so do you want me to write user event script or something else ?
b
there are several ways to run javascript on netsuite records
a user event script is a starting place for 2 of them
using Form.clientScriptModulePath to add client script or using Form.addField to add an inline html field
m
if form.addfield is dynamic field right?
b
im not sure what you are asking
m
I want to show value of field in view mode of record of custom record type do you have some sample code
b
No