Change default value attribute of soy checkbox

I'm using

aui.form.checkboxField

and I need add value="true"(to override default value 'on') attribute to generated after soy proccessing input. And I don't know how to do it in soy. Can you help me?

When I tried to use 'extraAttributes' params to add 'value=true' to input I've got next html:

<fieldset class="group">
   <legend><span>Don't track anonymous</span></legend>
   <div class="checkbox" value="true"><input id="notTrackAnonymousUsers" class="checkbox" type="checkbox" name="notTrackAnonymousUsers" checked="checked"><label for="notTrackAnonymousUsers">Enabled</label></div>
   <div class="field-group">
      <div class="description">Don't track anonymous users.</div>
   </div>
</fieldset>

As you can see from html it added value="true" to div not to input. Maybe you know some work around?
My soy looks like follow:

{call aui.form.checkboxField}
                        {param legendContent: getText('ch.bitvoodoo.confluence.plugins.viewtracker.ViewtrackerSettingsConfigureAction.action.track.anonymous-users') /}
                        {param value: true/}
                        {param fields: [
                                            [
                                                'id': 'notTrackAnonymousUsers',
                                                'labelText': getText('ch.bitvoodoo.confluence.plugins.viewtracker.ViewtrackerSettingsConfigureAction.action.track.anonymous-users.label-text'),
                                                'isChecked': $notTrackAnonymousUsers,
                                                'name': 'notTrackAnonymousUsers'
                                            ]
                                        ]
                        /}
                        {param descriptionText: getText('ch.bitvoodoo.confluence.plugins.viewtracker.ViewtrackerSettingsConfigureAction.action.track.anonymous-users.desc') /}
                    {/call}

 

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Agility Beta

We've moved!

A note to all watchers that we've moved to a new community home... https://community.atlassian.com/t5/Agility/ct-p/agility Please update your notification subscriptions to keep across the ...

61 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you