Passing in querystring values into checkbox group
Last Post 01-17-2013 03:02 PM by Ryan Bakerink. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
PeterUser is Offline
wading in the water
wading in the water
Posts:17
Avatar

--
01-17-2013 10:31 AM
    Has anyone has experienced with passing in querystring values into a checkbox group?

    Right now I have setup a checkbox group with the shortname "interest" and setting it to retrieve values from querystring. The possible values are 1,2, and 3

    When I set the querystring to ?interest=1 it works okay and checks the right box. But if I set it to ?interest=1,2 nothing gets checked off.


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

    --
    01-17-2013 10:53 AM
    Hello,

    Instead of passing Checkbox selections via the URL using Querystrings, why dont' you store the Checkbox selections into a table on the previous page and pass the UNIQUE ID or PRIMARY KEY associated with the record just inserted via Querystring.

    You can then use a SQL Default value to bind your Checkbox values from the database table to your Checkbox control.

    Please let me know if you have any questions.

    Thanks,

    Ryan
    PeterUser is Offline
    wading in the water
    wading in the water
    Posts:17
    Avatar

    --
    01-17-2013 12:03 PM
    Thanks for the quick reply Ryan!

    I'm using the latest version of Dynamic Forms and unfortunately I think the option to default to "SQL Driven" value does not exists for Radiobuttons and Checkbox Groups. (It only exists for Textbox type fields?)
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-17-2013 03:02 PM
    Hello,

    Dynamic Forms does allow you to use "SQL Driven Options", my mistake labeling it "SQL Default value". Use SQL Driven option to provide SQL and Dynamically pull in information from the database. Typically you can use SQL to tie into the UserProfile and ProfilePropertyDefinition table to determine the values stored in a User's Profile field.

    Try enabling debug mode and see if there are any issues with the DNN Profile field value coming in.

    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