Does anyone know how to add new fields to a form d...
# suitescript
b
Does anyone know how to add new fields to a form dynamically when a particular value has been selected in another field via a script?
j
You can create the field and set it to hidden initially then display visible when the condition is met. You can do that either via script or workflow.
c
Does it have to be a real NS field or can it just be a HTML field?
b
A real NS field
It needs to be added to a custom record
@jarens yes that seems like a fine idea.. But I have no prior knowledge of how many fields need to be added..
j
hmmm... sounds like something that might be solved with a child record/sublist or you could store all fields back to a single field (like a long text) as a JSON object, but that might be messy depending on how you are going to use it later.
b
Yes , I think a child record/sublist might work..