Mapping multiple questions to a field in record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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...."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
42m ago - last edited 40m ago
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:
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */