Show/Hide Submit Button
Last Post 08-19-2011 10:51 AM by ilam. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
ilamUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
08-16-2011 08:32 AM
    Hello,

    I need to be able to show the Submit button after 2 questions in the form have been correctly answered. I have selected under Module Configuration/Submit Link button "Initially hide form submission button" and the following code under Custom JavaScript File/Initial JavaScript:

    if ( $(DriveUnderInfluence) == 'No' && $(MaxSpeed)=='20MPH')
    {
    showhtml('SaveForm');
    }
    else
    {
    hidehtml('SaveForm');
    }

    Both fields are radio buttons and no matter what option I select the Submit button does not show.

    Please assist.

    Thanks
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-16-2011 09:45 AM
    Hi Ilam,
    Can you go to www.betasprings.com and duplicate a sample of your problem? Use host/dnnhost to login and make a simple page in the Dynamic Forms section to do this. Once done one of us here can go in and check the code and have a place to make changes and go over it with you.
    Thanks
    ilamUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    08-16-2011 11:40 AM
    Hi Don,

    I have created a page, this is the link http://www.betasprings.com/ilamTest...ault.aspx. It should show the submit button if 20mph and no are selected.

    Thanks,
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    08-16-2011 03:28 PM
    Hi,p

    Does it work if they are combo box's? Certain field types require certain JavaScript functions in order to render them properly. So I believe this would work if you were using combo box's which can just use the $(FieldToken) in client side events but I believe you would need to create or use a special function for them to work properly with radio buttons or special fields like check box lists etc... Any client side events/JavaScript falls outside of our standard support however you can view demonstrations on creating functions/client side events at http://www.datasprings.com/FormDemos (demo 7 I believe and also demo 21). If you do need us to code any JavaScript for you to handle this you can pick up Premium Support hours at http://www.datasprings.com/PremiumSupport

    Thanks!

    -Chad


    -Chad
    ilamUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    08-19-2011 10:51 AM
    Hi Chad,

    Thank you so much. Your suggestions worked!

    Regards,


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