alexD
Well-known member
- Affected version
- 2.0.4
With JavaScript disabled, the input remains disabled:

With JavaScipt enabled, the checkbox gets enabled and can be toggled:

Template modification for the
Find (simple):
Replace:
--
EDIT:
Using radio buttons has the same issue.

(the input gets enabled again when JavaScript is enabled)

With JavaScipt enabled, the checkbox gets enabled and can be toggled:

Template modification for the
account_preferences
template to quickly reproduce it:Find (simple):
HTML:
('you_will_receive_emails_sent_by_administrator_to_all_members') }}" />
HTML:
('you_will_receive_emails_sent_by_administrator_to_all_members') }}">
<xf:checkbox>
<xf:option value="receive_weekly_digests"
name="option[datio_emailDigests_receive_weekly_digest]"
checked="{{ $xf.visitor.Option.datio_emailDigests_receive_weekly_digest ? true : false }}"
label="{{ phrase('datio_emailDigests_receive_weekly_digests') }}">
<xf:checkbox>
<xf:option value="receive_daily_digests"
disabled="disabled"
name="option[datio_emailDigests_receive_daily_digest]"
checked="{{ $xf.visitor.Option.datio_emailDigests_receive_daily_digest ? true : false && $xf.visitor.hasPermission('general', 'receiveDailyDigests') }}"
label="{{ phrase('datio_emailDigests_receive_daily_digests') }}" />
</xf:checkbox>
</xf:option>
</xf:checkbox>
</xf:option>
--
EDIT:
Using radio buttons has the same issue.

(the input gets enabled again when JavaScript is enabled)
HTML:
('you_will_receive_emails_sent_by_administrator_to_all_members') }}">
<xf:radio name="digest_type" value="{{ $xf.visitor.Option.datio_emailDigests_receive_weekly_digest ? 'weekly' : 'daily' }}">
<xf:option value="weekly" label="{{ phrase('datio_emailDigests_receive_weekly_digests') }}" />
<xf:option value="daily" label="{{ phrase('datio_emailDigests_receive_daily_digests') }}" disabled="disabled" />
</xf:radio>
</xf:option>
Last edited: