The mailingList tqTag enables tqAdmins (with suitable permissions) to manage and send emails to email-only groups.
<tqtag name="mailingList0" type="mailingList" title="join mailing list" [alternativeTag="loginBoxAlternative1" alternativeCondition="isLoggedIn"] [onSubmitJsFunction="checkRegisterForm()"] >
...
</tqtag>
Example 1 - mailingList/register basic use
<tqtag name="mailingList0" type="mailingList" title="הוספה לרשימת תפוצה" >
<input type="hidden" name="myemail" value="me@myemail.com" />
<ul>
<li><span>Email</span><input name="email" type="text" /></li>
<li>
<input type="radio" name="mailListAction" value="i" />yes, join mailing list
<input type="radio" checked="checked" name="mailListAction" value="d" />no, don't join mailing list
</li>
<li><button type="submit">Submit</button></li>
</ul>
</div>
</tqtag>
Example 2 - mailingList/register to insert customer with onSubmitJsFunction property that specify a javascript function you want to check the form or to run after submitting the mailingList/register form
<tqtag name="mailingList0" type="register" title="הוספה לרשימת תפוצה" alternativeTag="loginBoxAlternative1" alternativeCondition="isLoggedIn" onSubmitJsFunction="checkRegisterForm()" >
<input type="hidden" name="errorMessage" value="The user name that you have chosen is occupied" />
<div>First name: <input name="fName" id="fName" type="text" /></div>
<div>Last name: <input name="lName" id="lName" type="text" /></div>
<div>Address: <input name="address" id="address" type="text" /></div>
<div>City: <input name="city" id="city" type="text" /></div>
<div>Zip code: <input name="postalCode" id="postalCode" type="text" style="width:100px;" /></div>
<div>Email: <input name="email" id="email" type="text" /></div>
<div>Telephone 1: <input name="phone" id="phone" type="text" /></div>
<div>Telephone 2: <input name="phone1" id="phone1" type="text" /></div>
<div>User name: <input name="userName" id="userName" type="text" /></div>
<div>Password: <input name="userPass" id="userPass" type="password" /></div>
<div>Repeat password: <input name="userPassVer" id="userPassVer" type="password" /></div>
<div>I would like to receive discounts and newsletters in the future:
<input name="mailListAction" type="radio" value="i" checked="checked" /> Yes <input name="mailListAction" type="radio" value="d" /> No
</div>
<div>
<button type="submit">Submit</button> <button type="reset">Reset</button>
</div>
</tqtag>
With the mailingList tqtag, you can use the following tqoptions:
if.