Remove elements from form

Post any interesting custom filters here.

Moderators: Murray, Jeff

Remove elements from form

Postby eco » Wed Jun 03, 2015 6:41 am

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="" />
Active Member
Posts: 17
Joined: Tue Mar 15, 2005 9:58 pm

Re: Remove elements from form

Postby Jeff » Wed Jun 03, 2015 6:50 pm

The server still won't accept your submission.

the form check is only client side, you can't control the server side reaction.
That's not an ad blocker... THIS is an ad blocker.
No bovines were harmed in the making of this program.
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Ad Muncher Developer
Posts: 6119
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States

Return to Custom Filters

Who is online

Users browsing this forum: No registered users and 3 guests