Question

How to make radio button has default value which is getting from the Rest API

I have a requirement with click of Edit, a layover pane must open containing details with 3 options Yes, No, Not Given.The option which is customer's Options - must be Pre-selected. This Pre-selected value is coming from the Rest-API.

I have created a Text property with local list Yes, No and Not Given with 3 options and i have created local action on the Edit button to call section. In section i have taken the radio button and mapped the property which i created with local list. But how to make the radio button with pre-select value which is coming from the API in customer details.

I have stuck to map the pre-select value to the radio button.

Can any one help how to make the radio button with pre-select value which is coming from the API in customer details.

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

September 15, 2019 - 11:15pm

Once you get the preselected value from the API, set the value of the radio button in the clipboard. Once you set the value in the clipboard, once you open the screen(UI), the radio button will come as selected.

September 16, 2019 - 9:32am

IS this an Edit button ? If it is, then perform the following action on the "OnClick"

1. Run the REST API to get the value of the radio button property

2. Set the value of the radioButton

3. Open Overlay.

As long as the value is set before you display the overlay, the details should be updated.

 

October 10, 2019 - 11:24pm

Add click event and call Local Action. In the flow action pre-activity you can call service and once got response you map to the property showing on UI. Then you can see the value pre-selected.