SQL Driven Question Events
Last Post 06-11-2012 05:45 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Marc FullerUser is Offline
going with the flow
going with the flow
Posts:59
Avatar

--
06-11-2012 04:46 AM
    Hi There,

    I have a tick box on my registration form. When it is clicked, I wanted a event to fire that would update another field with todays date. The problem is, when defining a question event, there is no way to have a SQL driven default value so I can get it to run Select GetDate() As DefaultValue.

    Is there any way around this please?

    Many Thanks


    marc
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    06-11-2012 05:45 AM
    Hello Marc,

    Unfortunately Dynamic Registration doesn't allow you to set a default value with a Conditional Question Event.

    So to achieve this functionality in DR, you will need to use JavaScript. You will need to add JavaScript to the On Client Side section of the Checkbox questions with JavaScript to do the following:

    * Get the ID of the field that you wish to contain the date value if the checkbox is checked. You can find this value in the source code.

    * When checkbox is checked get the date(via JavaScript) and assign it to the field that needs to contain this value(most likely a hidden field using the ID).

    I created a blog post to showcase how to use JavaScript to hide and show rows on a form, however irrelevant, you can reference some of the JavaScript provided in the blog post to create the workflow on your DR form.

    http://www.datasprings.com/news/blo...o-postback

    Let me know if you have any questions.

    Thanks,

    Ryan



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