Default Radio Item

How do I set a radio item as already selected by default when a form loads? I’ve tried various ways and it just refuses to select the one I want on load.

Hi!

Please try this code:

fd.field("RadioInternalName").value = "Choice";

Note the following:

  1. You should replace “RadioInternalName” with an internal name of your field
  2. You should replace “Choice” with your default choice option
  3. Place this code into “spRendered” event handler (or “rendered”, if you use public forms)
1 Like

Worked. I see now I was over complicating it.Thanks.