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
jarens
05/13/2019, 12:27 PM
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
cja
05/13/2019, 12:28 PM
Does it have to be a real NS field or can it just be a HTML field?
b
bharath64
05/13/2019, 12:28 PM
A real NS field
bharath64
05/13/2019, 12:29 PM
It needs to be added to a custom record
bharath64
05/13/2019, 12:32 PM
@jarens yes that seems like a fine idea.. But I have no prior knowledge of how many fields need to be added..
j
jarens
05/13/2019, 12:35 PM
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.