Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

How do Form Completion Events really work???
Last Post 09-25-2007 04:10 PM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AndyUser is Offline
going with the flow
going with the flow
Posts:38
Avatar

--
09-24-2007 10:16 AM

    Another question on 'Events'.  I'm trying to initiate a SQL insert when the user adds a response to a particular dynamic field.  The Event Details wants to know 'User Response:'?  Well... I don't know WHAT the response will be...  do I leave it blank? Do I put '*'?   Also, this particular field only displays if they had selected a previous Question Event that enabled this field. Given that I have one, two or three different Form Completion events, am I to assume that this event (as well as the others) will run on form submission, even if the user is never prompted for the question because it remained hidden? Or will that throw an error?

    Also, after I save the event (Update Event) it does get added to the list of Form Completion Events but it is no longer viewable under the particular dynamic question where I added it.

    Last, given the above, is the following SQL event proper?

    INSERT INTO dnn.dbo.itemlist (text) values ($(newitem)

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    09-25-2007 04:10 PM

    For form completion events (all types such as Email, SQL, Redirection etc...) you just need to specify the response as 'Any Response' if you want the form to always fire no matter what, otherwise you just need to choose what response will trigger the event and from what field.

     

    Example:

    Field: Color

     

    Field Response: (choose < Any Response> from dropdownlist to always fire the event or possibly choose 'Blue' if you only want the event fired when the user selects Blue from that dropdownlist).

     

    In general, keep in mind that you should be able to have as many (or as few completion events) as you would like but you only need to have 'Redirection Event Types' setup for events that don't use the 'Any Response' response. This is because you can already specify the redirection URL under General Settings so you only need to setup a event for redirection if you want it to send the user to a different URL based on a fields response (i.e. Redirect the user to  Page A if the user chooses Red from the dropdown or Page B if they select Blue from the dropdown, this would be two events setup, otherwise if they don't select Red or Blue it will redirect them to whatever page is specified in general settings).

     

    As far as your SQL for the event, a few small changes -notice the ' and extra )

     

    INSERT INTO dnn.dbo.itemlist (text) values ('$(newitem)')

     

    In short you can test your SQL by executing it under Host, SQL and just replace the $(newitem) text with actual text. So for example, in your example it would have looked like this:

     

    INSERT INTO dnn.dbo.itemlist (text) values (myitem

     

    Instead you want it to look like this to work:

    INSERT INTO dnn.dbo.itemlist (text) values ('myitem')

     

    When the SQL Event executes the $(newitem) text (which represents the fields short field name) will be parsed and replaced with the actual value.

     

    -Chad

     

    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • 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