why would the field id change from `custbody_myfie...
# general
p
why would the field id change from
custbody_myfield
to
inpt_custbody_myfield18
after a record is created and then edited again?
j
Where is this happening?
p
so i am working on a custom javascript outside of the netsuite api (i know, i know) and in chrome devtools I see that the field id changed.
j
well NetSuite replaces form elements with its own things
and makes hidden elements with the original ids
for example, <selects> have their own fancy things
if you inspect element you’ll see what’s happening
p
Yup. I ended using getelementsbyname to do what I need since the name does not seem to change - just the id.