• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add alert preferences to add-on

Dadparvar

Well-known member
#1
Hi,

I created a template with this code:
Code:
<h3 class="sectionHeader">{xen:phrase dad_newsticker_navtab}</h3>
<dl class="ctrlUnit">
    <dt>{xen:phrase dad_newsticker_preferences_explain}...</dt>
    <dd>
        <ul>
            <li><input type="hidden" name="alertSet[newsticker_want_see]" value="1" />
                <label><input type="checkbox" value="1" name="alert[newsticker_want_see]" {xen:checked "!{$alertOptOuts.newsticker_want_see}"} /> {xen:phrase dad_newsticker_want_see_tickers}</label>
                <p class="hint">{xen:phrase dad_newsticker_want_see_tickers_explain}</p>
            </li>
        </ul>
    </dd>
</dl>
And I'm showing it using TM in alert preferences page.

Can someone tell me how to check it now? I want show/hide something based on each user's choice. If he checked, then see it, and if un-checked, not see it.

Thanks

@Chris D @Brogan