Revision history [back]

click to hide/show revision 1
initial version

asked 2014-04-02 19:14:54 +0800

sathishk gravatar image sathishk

How to Disable Mandatory Constraint for email textbox

Hi sir,

The Below given Constrain for email, If i Enter empty string it's shows validation popup,in this case i need to disable popup of email constrain and remove mandatory field,How to do? Validation work only when i enter any String only,but here two ways display popup.

Please give me suggestions.I am new in ZK.

<label class="bold">Email</label> <textbox id="emailid" constraint="/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/: Please enter an e-mail address"> </textbox>

How to Disable Mandatory Constraint for email textbox

Hi sir,

The Below given Constrain for email, If i Enter empty string it's shows validation popup,in this case i need to disable popup of email constrain and remove mandatory field,How to do? Validation work only when i enter any String only,but here two ways display popup.

Please give me suggestions.I am new in ZK.

<label class="bold">Email</label>
<textbox id="emailid"  constraint="/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/: Please enter an e-mail  address">
</textbox>

</textbox>

How to Disable Mandatory Constraint for email textbox

Hi sir,

The Below given Constrain for email, If i Enter empty string it's shows validation popup,in this case i need to disable popup of email constrain and remove mandatory field,How to do? Validation work only when i enter any String only,but here two ways display popup.

Please give me suggestions.I am new in ZK.

<label class="bold">Email</label>
<textbox id="emailid" 
    constraint="/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/: Please enter an e-mail address">
</textbox>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More