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!

Include a "Hidden Until Forced Visible" field in a calculation When hidden
Last Post 10-07-2010 01:00 PM by Ryan Bakerink. 5 Replies.
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 10:26 AM
    I have 10 RadioButtons controls on my form and javascript in each that calculates a grand total whenever a user chooses one of the values of the 10 RadioButtons. I got the javascript total worked out, but then I chose to hide most of those RadioButtons until forced visible. And now my total formula doesn't work anymore unless all the RadioButtons are unhidden.

    How do I configure the Javascript to add the values of only the visible RadioButtons?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-04-2010 12:55 PM
    Hello Whetstone,

    What kind of values are you getting for your grand total when a question event is unhiding a radio button?

    What DNN version are you running?

    It does make sense that you're total calculation isn't correct when you have radio buttons that are hidden while waiting for a question event to unhide it.

    The reason why? Well when a question event is initiated you can think of it as reloading/refreshing the page. It seems that with hidden fields your fields are losing their values.

    If you have any questions please let me know.

    Thanks,

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

    --
    10-05-2010 09:45 AM
    Yes, it makes sense that it would not add the values of a hidden radiobutton field. The question is, how do I create the sum formula that ignores hidden fields and sums the visible ones? It has to be flexible enough to work both when there are fields hidden and when some of them are not.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-05-2010 02:02 PM
    Hi... This has come up a few times, please review this thread:

    https://www.datasprings.com/Products/Product-Forums/tabid/727/forumid/5/postid/20999/view/topic/language/en-US/Default.aspx

    This basically covers how to use a try/catch and this way if the value is null it just gets skipped... If you look up 'JavaScript Try/Catch' you should see what I mean.

    Thanks,

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

    --
    10-05-2010 06:23 PM
    Thanks Chad. That should do the trick.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-07-2010 01:00 PM
    Hello Whetstone,

    Please let us know how everything's going for you based on the initial question you had.

    If you have any questions please let us know.

    Thanks,

    Ryan
    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