Print Page | Close Window

Radio Button Behavior

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2767
Printed Date: 18 Jul 25 at 4:01AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Radio Button Behavior
Posted By: JohnT
Subject: Radio Button Behavior
Date Posted: 23 Oct 13 at 5:07AM
I like the mutual exclusivity of the radio buttons.
However, once selected, they stay selected.

As an example, if I have three choices with none selected,
if I select choice one, and change my mind to select another
it works fine, but, if I want to reverse my selection to none,
it appears there is no backing out.

Thanks in advance for any help.

John



Replies:
Posted By: Ingo
Date Posted: 23 Oct 13 at 7:43AM
Hi John,
 
the very first time the developer setting works.
After this - at runtime - there's no possibility to reset to startsetting.
I think this is normal behavior...
if you want to integrate your described functionality you could insert an additional checkbox or a button linked with some javascriptcode doing this job for you.
An easier way: A fourth choice with the text "nothing" ;-)
 
Cheers and welcome here,
Ingo
 


-------------
Cheers,
Ingo



Posted By: JohnT
Date Posted: 23 Oct 13 at 3:40PM
Ingo,

Thanks very much.

Yes, I thought maybe it was just a limitation of the PDF radio button behavior, but thought I'd check to see if maybe a trick could be deployed.

I followed your suggestion and after iterating to the next record added a "None" radio button.
Works like a charm.

I'm now writing logic to check to see if any values within the group are checked. If not checked then the "None" radio button have its value set.

If I get something that works reasonably well and can be used by anyone else, I'll post the Delphi code excerpts since this must be a pretty common problem.

Thanks again.

John



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk