Force radio button value

parentgroupid is a select
subgroup is a radio. It is a display-only field…not in the database.

in the ONLOAD I have this and it works correctly:

if({parentgroupid}>0){
sc_field_display({parentgroupid},on);
{subgroup}==1;

}else{
sc_field_display({parentgroupid},off);
{subgroup}==0;
}

But as I navigate through records, the field display {parentgroupid} goes on and off correctly, but the radio button {subgroup} never displays any value again. I’ve tried doing an ajax onchange for the primary key, onnavigate…just doesn’t do it. Any way to force it?

You should use single = instead of double ==

{subgroup} = x;

1 Like

Had tried that. Finally took out all the ajax stuff, saved, cleared cache, put back ajax, saved. All worked! I feel like I clear the cache every 15 minutes. And yes, you are totally correct on the = vs ==. Thanks.