How to set a default value for a radio button in Pega Infinity 24.2.2?

Hi,
I’m using Pega Infinity version 24.2.2 and I have a radio button in a view. I want to set a default value so that one of the options is selected when the form loads.

Can someone guide me on how to set this default value?
Thanks!

Hi @MaleeshaW ,

In the configure view you would find ‘Pre/Post Processing’ tab. There you can set up a Pre Processing Data transform. In the Data transform you can set the default values for your fields.

Thanks,

@SumanKumarCan we use pySetFieldDefaults data transform to set the default value upon case creation? Is this approach acceptable too? Following this approach to reduce rule creation.

@MaleeshaW That should work. You can also use pyDefault data transform as well. Alternately you can define all the initialization at Case type → Settings → Data initialization.

Regards,

@SumanKumar Thanks for the suggestions.