The CreatorCon Call for Content is officially open! Get started here.

Mapping multiple questions to a field in record producer

Menalik
Tera Contributor

I ran into a snag while updating my Incident record producer. When a user chooses a category while filling out the incident form, it generates another question (a "subcategory type"). I was able to map the Hardware question to the sub_category_type field, but it will not allow me to map the other questions to the same field. Does this have to be scripted? Please see screenshot.
Ex., User chooses Hardware under the Category menu --- generates the question "What type of hardware...."

User chooses Software from under the Category menu -- generates the question "What type of Software...."

1 REPLY 1

GlideFather
Tera Patron

Hi @Menalik,

 

you can use the script field on the record producer record:

current.backend_field = producer.portal_field; //to get sys ID

current.backend_field = producer.portal_field.getDisplayValue(); //to get string 

you can the the whole magics in that field, and Zurich brought option for post-submission script as well.

 

I have there this (ugly) code which I will re-write one day:

GlideFather_0-1759787088163.png

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */