How Do I Display Default Values for Checkboxes, Radio Buttons, Dropdowns?

How Can We Help?

How Do I Display Default Values for Checkboxes, Radio Buttons, Dropdowns?

< Back

Answer

To make a default value be displayed/selected in dropdowns and a radio button be selected initially on form load, create a reference label, make it hidden, open its scripting and use the follow:

public void TR1025Email_OnLoad()
{
//for a checkbox and radio button use true, false
activity.SetControlValue("Control to set the default value of", true);
//for any other control
activity.SetControlValue("Control to set the default value of", "Default value");
}
Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X