Page 1 of 1

Remove elements from form

PostPosted: Wed Jun 03, 2015 6:41 am
by eco
How do I remove certain elements from a form? What I'm trying to do if remove certain numbers so a form doesn't check to see if the number entered matches 379016 and therefore gives an invalid number error. I can post the entire source coe of the page if that would be helpful.

Code: Select all
<input class="form-control" data-val="true" data-val-regex="Invalid number" data-val-regex-pattern="^(?!(374327|600649|374328|379039|379016)).*$" data-val-requiredif="Please enter number" data-val-requiredif-dependentproperty="PrimaryPaymentMethod" data-val-requiredif-dependentvalue="Payments.ChoiceCard" data-val-requiredif-operator="EqualTo" id="ChoiceCardNumber" name="ChoiceCardNumber" type="text" value="" />

Re: Remove elements from form

PostPosted: Wed Jun 03, 2015 6:50 pm
by Jeff
The server still won't accept your submission.

the form check is only client side, you can't control the server side reaction.