How to make embedded widget within modal containing radio buttons for input

bwhisenant
Tera Contributor

Goal: User clicks rework and pop up modal appears containing a list of choices with radio buttons. They click all that apply to them, answers are recorded to activity log when modal closes, and form returns to draft state.

 

Hi all,

My team currently has a service portal that is chock full of custom widgets, much to my dismay. The widget I'm currently working within is a form widget, which displays the form information and also has UI Actions at the top. One of these UI actions is 'Rework'. When clicked a script within the widget client controller tell this UI Action to open a modal (using spModal.open) and the window appears with a message, a blank space to type string values, and a cancel button.

 

We would now like to modify the current widget to have radio buttons and a list of choices (of which they can choose multiple) rather than them typing in their reason. These choices are not on the form or table anywhere currently, and for our use case do not need to be unless it's required to make this work. Those selected choices would then be written into the activity log and the form would return to draft status (activity log and status change are currently happening as is).

 

I believe an option would be to embed a widget within the modal that contains these buttons, though the only way I know how to create something similar to what I'm looking for is by creating a UI page and using the 'try it' functionality. I'm having trouble piecing things together to allow the radio buttons to appear in a widget. I've attempted UI pages and widgets, though I feel that I'm just throwing things and hoping for the best. Any assistance would be appreciated.

 

Please don't feel that you'll insult my intelligence by over explaining or simplifying your answer. I have modified many widgets but am new to creating one or work of this scale.

0 REPLIES 0