6.1 Using setFieldValue function in Logic is Not Supported on Radio Component

Issue: If you set logic on the Radio component using the setFieldValue function to fetch values dynamically when triggered by an event, the radio field might not work as expected.

Workaround: You can use the setFieldValue function in either CustomDefaultValue or CalculateValue method in the JS Editor to fetch values dynamically on a radio field. For example, you can configure the following function on the Radio component and set the default value as 1:

function radio_CustomDefaultValue () {
    setTimeout(()=>{
        instance.setFieldValue(fetchValuesForRadio(),null,null,1); 
        
    },1000)
}

function radio_CalculateValue () {}

function fetchValuesForRadio(){
    return ['1','2''3','4'];
}