• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Validation rule triggered for readonly or disabled textboxes

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am facing a problem with validator framework. I have 2 sets of fields - one for billing address and one for shipping address. By default both values are the same & hence all the textboxes under the shipping address (like addr,city,state,...) display the values but are disabled/readonly.
A checkbox with label "Same as billing address" can be selected/deselected by the user. When the checkbox is deselected, all textboxes are enabled for the user to input the correct address.
Now heres my problem -

I am using client-side validation. When the textboxes are in readonly state & I try to submit the form, the validation rules (of 'required','mask','integer' etc) are getting called ,although data is present in the textbox. Why cant it detect the data in the textboxes if they are marked readonly ? what is the solution ?
Pls advice.
 
Meera Godse
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Forgot to mention ...... Results are as per Firefox Mozilla.
 
I just had the craziest dream. This tiny ad was in it.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic