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
Community showcase
Posted 2 hours ago in Europe

Speaker Required!

Hey, We're currently organising an AUG event on Tuesday the 23rd of October. It's being hosted by Tata Consultancy Services near High Street Kensington station. We currently require one more spea...

29 views 0 0
View post

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