Can we set an inlineHtml value via client script?
# suitescript
t
Can we set an inlineHtml value via client script?
just found the answer for this. we cannot set inlineHtml value only its property during CS
g
do you need to change the value? if you’re using it to display some html and don’t need the value stored then you can update the dom with vanilla js (or jquery which is already in scope) , etc
t
I am trying not to use any other script on this one @Gerald Gillespie aside from suitescript. Yes the value should be dynamic
g
the “vanilla js” i’m referring to can be in your clientscript file (or loaded by it using dependencies or
@NAmdConfig
)
t
yes Gerald, we are strict on this. We don't want to control field via its DOM. Because there are tendency that there will be an update on the DOM Id's or maybe on Netsuite which result to script not working as expected 🙂
🌊 1
But I appreciate the input @Gerald Gillespie thumbs up
🐎 1
g
imagine if the value in said html field was
<div id="kwijibo">whatever you have now</div>
do you see a way your client script could manipulate that? 🎣
netsuite can do what it wants but i dont think they will ever use
kwijibo
;)