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!

RadioButton default value
Last Post 06-07-2011 11:41 AM by AF. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Mark BuelsingUser is Offline
river guide
river guide
Posts:241
Avatar

--
10-01-2010 07:49 AM
    Hi, thanks for reading.
    I have a RadioButton whose QuestionOptionValues are a decimal like 125.45  And I want one of my choices to be the default. I have chosen one as a default but when the form loads, there is no option chosen at all and as a result my calculations in my total cost field won't calculate.

    1. Why won't the radiobutton do the default I've specified

    or
    2 How do I do the javascript to substitute the value of 0 for a radiobutton that has not been clicked by a user and therefore has an undifined value.

    Thanks
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-05-2010 09:49 AM
    Why does the radiobutton not show the default option as being chosen on form open? It shows no options chosen.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-05-2010 01:59 PM
    Hi. So you have that value selected within the module configuration area? Does it work if you have just a simple radio button (like one with a yes or a no). It could be a problem if you had multiple radio button options that had the exact same value/amount. Are all of your question option values unique? Can you attach a screenshot of where you are selecting the default value at under the question settings?

    Thanks,

    Chad
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-05-2010 06:01 PM
    Thanks Chad for your help.

    The options for the radio button are unique. The "None Chosen" option has the value of 0 and the other options have unique dollar values. I wanted the "None Chosen" option to be the default so the value of the radioButton would therefore be 0 and not null. I have chosen the "None Chosen" option as the default, but the form does not show any option selected when it is opened.

    Screenshots are provided for the form view and the design view.



    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-05-2010 06:35 PM
    Hi... Well, I have to admit that this all does look correct assuming you don't have other features turned on such as pulling from querystring, session, binding, etc... Even then it should at least set the default first.

    If you switch to a combo box does it work then? If so I can go and just check the code for radio buttons. If not, I will probably need to see if you can duplicate this on Beta Springs.

    Thanks,

    Chad
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-06-2010 06:47 AM
    Switching it to a checkbox or checkbox group does not make the default work. I'm sorry I cannot steal the time required to re-create this in your test area right now. I'll have to get back to you.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-07-2010 12:57 PM
    Hello Whetstone,

    Please let us know how this goes for you.

    Thanks,

    Ryan
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-28-2010 08:36 AM
    Chad, thanks for your reply. SQL Binding was enabled. When I unchecked that box, my default choices in the radioButtons started working again. Thank you very much!
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-28-2010 09:08 AM
    Hello Whetstone,

    I'm glad to hear everything is working for you.

    If you have any additional questions please let us know so we can be of assistance.

    Thanks,

    Ryan
    AFUser is Offline
    going with the flow
    going with the flow
    Posts:49
    Avatar

    --
    06-07-2011 11:41 AM
    I ran into this issue as well but I could not disable SQL binding because I needed it. What I ended up doing was casting the value returned for the radio button to a varchar in my sql bind statement. ex. cast(MyFieldName as varchar(3)) as ShortFieldName

    That worked ... hope this helps someone.
    -----------------------------
    www.amazingfacts.org
    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