validation issue
Last Post 02-29-2012 08:57 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
mdmikoUser is Offline
skipping stones
skipping stones
Posts:7
Avatar

--
02-25-2012 12:25 AM
    hi, I'm using dnn6.1.2 and last dyn registration module.

    in my reg page i need 3 radio button.

    a) user isn't a paying member
    b) user is already a paying member
    c) user want to pay to be a member

    in event b i put a sql validation with stored procedure. on selecting radio button b, in the form i show two (perviously hidden) fields: member card number and Ssn. the stored procedure checks if user inserted correct info and return a isValid column.

    it works correctly.

    if user select radiobutton a, validation fire an error. but fields are hidden... the validation shouldn't fire, becouse i selected case A, (where user isn't a paying member, and hasn't a member card)

    how i can solve this?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-29-2012 08:57 AM
    Hi. So basically what you are saying is that the validation is firing regardless if the form field is visible or not?

    You could always have your validation / stored procedure check the value that is being passed in and if the token is correct (or the token shows up and it should be hidden or isn't coming in properly) then you could check for that and go ahead and return IsValid?

    As far as I know though, fields that are not currently visible on the form (hidden by a question event) should later on not fire SQL Validation or any validation.


    Thanks,

    Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi