Dynamic Form recalcs reset to 0 after validation.
Last Post 11-16-2013 06:28 PM by John Saldana. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
John SaldanaUser is Offline
skipping stones
skipping stones
Posts:11
Avatar

--
10-13-2013 06:17 PM
    Guys, 

    I got a form that has a lot of client events to calculates totals based on QTY. I have an address section and a payment section connected to authorize.net. In the address section (panel) I have a Country -> State question event as per the examples on this forum that populates the state based on the country. 

    When the user fills everything properly, everything works correctly, however, when there is a validation field, lets say incorrect CC entered, when the user submit the form, everything reset, the state reset , all calculation reset to 0. 

    Is there a way to run a function after the post back? 

    Thanks 
    JS
    John SaldanaUser is Offline
    skipping stones
    skipping stones
    Posts:11
    Avatar

    --
    10-14-2013 08:40 AM
    Maybe I didn't explained my self right.

    Whenever the form fails to validate any field, it reset the question state, which depends on the country, is there a way to set so that if question has a value, the question event doesn't fire?
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    10-16-2013 07:17 AM
    HI John, how about on the "state", under "advance field option", you check both:

    1) Retrieve values from querystring variable for this question
    2) Pass values of this question to querystring variable

    This way, if there is validation error, it will re-direct you back to the same page but since you are retrieving thie "state" from querystring, it will still be there and not be wiped out. See if this will achieve what you want.

    --David To
    John SaldanaUser is Offline
    skipping stones
    skipping stones
    Posts:11
    Avatar

    --
    11-16-2013 06:28 PM
    thanks for your help, I tried what you suggested, but it didn't work. Every time someone fills the information on the form, and submit the form if the validation is false, its resetting all the questions to default, I lose all their input. Can anybody help?


    ---
  • 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