I have a dropdown that is built around the name of a store. In the values, I've added the address and phone number for each store, separated by a ";". I then use a custom script to calculate based on those parts.
However, in the event the store doesn't exist in the dropdown, I would like to have the calculated fields that show "address" and "phone number" to accept a manual entry. Currently, if I allow custom input into the store field, both the "address" and "phone number" fields render "undefined."
I currently have a blank item with no values as the default, but once custom text is entered, the other two calculated fields render "undefined."
For reference, here's how I've coded the "parts":
var clinparts = this.getField("ClinName").valueAsString.split(";");
var clinnamepart = String(clinparts);
var clinaddpart = String(clinparts);
var clinphpart = String(clinparts);
event.value = clinaddpart;