tqExpert Help


The mailingList tqTag enables tqAdmins (with suitable permissions) to manage and send emails to email-only groups.

mailingList - Syntax

<tqtag name="mailingList0type="mailingListtitle="join mailing list" [alternativeTag="loginBoxAlternative1alternativeCondition="isLoggedIn"] [onSubmitJsFunction="checkRegisterForm()"] >

mailingList - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be mailingList
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
htmlAjaxElement Alpha Numeric - S + Specify element name to submit the mailing list form to
onSubmitJsFunction Alpha Numeric - S The system will add the onsubmit argument to the form. This gives you the option to run/execute a javascript function before form submit.

mailingList - Local Variables

Name Type Size Description

mailingList - Examples

Example 1 - mailingList/register basic use
<tqtag name="mailingList0type="mailingListtitle="הוספה לרשימת תפוצה" >
<input type="hidden" name="myemail" value="" />
    <li><span>Email</span><input name="email" type="text" /></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><button type="submit">Submit</button></li>

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="mailingList0type="registertitle="הוספה לרשימת תפוצהalternativeTag="loginBoxAlternative1alternativeCondition="isLoggedInonSubmitJsFunction="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
    <button type="submit">Submit</button> <button type="reset">Reset</button>

mailingList - tqOptions

With the mailingList tqtag, you can use the following tqoptions: if.

mailingList - Templates

The templates below implement this tqTag. After you click a link, use your browser commands to view the page source.

User Notes

  Add Note

Topic: mailingList