Edgar Valdes
11/22/2023, 3:53 PMfilteredby
Custom Segment A.
In the Suitelet, how do I define this dependency?
So far, I have created a form in the Suitelet and added two select fields using form.addField
. Then, populated the first select field with the Custom Segment A. Then added a client script with a fieldChanged
entry point. When the first select changes, I get the selected option, then can do a search or query to get the related Custom Segment B. So far, so good.
My question is, ¿how do I reset the second dropdown and populated again when the first select changes?battk
11/22/2023, 4:29 PMEdgar Valdes
11/22/2023, 8:52 PMEdgar Valdes
11/22/2023, 8:55 PMaddSelectOption
but your link made clear that removeSelectOption
belongs to currentRecord
, same as insertSelectOption