Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rolandbarker

    (@rolandbarker)

    You need to have two options defined (checked, unchecked) to do that. This gives the unchecked state a value that you can select as your default.

    Thread Starter Trippetchz

    (@trippetchz)

    Hi thanks for getting back.

    Unfortunately, doing that works, but adds the “checked” text on to the signup page itself (which is unwanted):

    <div class="controls">
    <span class="help-block">I am over 18 years of age.</span>

    <input name="test2" id="pdb-test2-2-default" class="required-field" type="hidden" value="unchecked">
    <label for="pdb-test2-2">
    <input name="test2" id="pdb-test2-2" class="required-field" type="checkbox" value="checked">
    checked
    </label>

    </div>
    Thread Starter Trippetchz

    (@trippetchz)

    Which looks like this with the new version:

    instead of this, from older versions:

    Thread Starter Trippetchz

    (@trippetchz)

    If I remove the help text and put “I am over 18 years of age” as an option it works ok again. ๐Ÿ™‚

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Attribute to have checkboxes unchecked by default’ is closed to new replies.