how to set Inline HTML field value in netsuite via script
var msg = ‘<div style=”font-weight:bold>To view message <a href=”‘+turl+'”>Click here</a></div>’;
nlapiSubmitField(‘SalesOrder’, recId,’custbody_inlinehtml’, msg);
Inline HMTL fields don’t store value, you cant set them with a field value. For your particluar task, I would recommend making another field to store your url and make the Inline HMTL field’s default value be a formula that references your second field.
You probably want to restructure your message to be more convienient if you have to do another field to store your message if you dont want a link for null urls.
Can you please brief me, how to achieve the result?
Your inline html field should be setup as a formula field. Specifically. you should use your html as your default value, and then use a field reference to get the value of another field which stores the url you want to link to. Update that second field with the url instead of trying to set the inline html field.