populate multiple hidden fields from a single radio selection
Last Post 08-16-2011 01:08 PM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
sentientUser is Offline
river guide
river guide
Posts:127
Avatar

--
08-15-2011 01:24 PM
    Im using the funcRadioCalc function to push a value from a SQL driven radio list to a hidden field. This works fine with a single value. However I would like to populate multiple hidden fields.

    Can the JS function be adapted to do this:

    Radio set (region):
    select [Text] as QuestionOption, [Franchise] as QuestionOptionValue 
    from [Franchises]

    /* other values needed from this table as well as [Franchise] - so multiple values in further columns */

    Client event on radio box:
    $(francode) = funcRadioCalc($(region_FieldID));
    $(franird) = funcRadioCalc2($(region_FieldID)); /*the next value*/
    $(franird) = funcRadioCalc3($(region_FieldID)); /*the next value*/

    Not sure how to do this short of having a separate form.

    Thanks

    sentientUser is Offline
    river guide
    river guide
    Posts:127
    Avatar

    --
    08-16-2011 06:11 AM
    Please, is there any help on this?
    I basically want to be able to populate multiple fields from a database query dependant on the selection of a radio group:
    select [Text] as QuestionOption, [Franchise] as QuestionOptionValue1, [ird] as QuestionOptionValue2,[franacc] as QuestionOptionValue3
    from [Franchises]
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-16-2011 11:08 AM
    Hi Sentient,
    Anything in the area of SQL or Javascript is normally a premium support issue which you can find out about at this link: http://www.datasprings.com/support/...rt-options

    However, we can still try to help you. The best way to do this is for you to set up your example on www.betasprings.com (login host/dnnhost). To do this just use the login and go into the Dynamic Forms section and set up your sample. Then let us know and we will take a look at it and try and help.
    Thanks
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    08-16-2011 01:08 PM
    Yes - We have had to do this with some Premium Support and implementations before and I believe the direction we went was to use a JavaScript split function. So we would bring the values back from the SQL such as "red,blue,green" into the value option, then we would split the values based on a JavaScript function to get the set of values or utilize them however we needed them.

    Thanks!

    Thanks,

    -Chad


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