Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2006

Tip: Looking for answers? Try searching our database.

Option(Radio)button data validation problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bleh12891 - 29 May 2006 04:39 GMT
Hi guys!Newbie here!
I'm trying to control the value of a textbox by 3 option
buttons(accept,reject and other). I tried to use data validation scripting
(OnAfterChange) but it doesn't seem to fire.I have 3 text values I want to
display in my text box depending on which radio(option button) button is
clicked.How do I do this?
Thanks guys.Really appreciate any help..
Ben Walters - 29 May 2006 06:34 GMT
Hey,
This should be pretty easy, open the properties for each option button
(either double click or right click and select Properties)
enter the desired text in the "Value when selected" text box.
once you option buttons have been set open the properties for your display
text box and set the field value to equal the field where the option buttons
are.

let me know if you have any issues
Cheers
Ben

> Hi guys!Newbie here!
> I'm trying to control the value of a textbox by 3 option
[quoted text clipped - 3 lines]
> clicked.How do I do this?
> Thanks guys.Really appreciate any help..
bleh12891 - 29 May 2006 07:01 GMT
Thanks that worked!
I have another problem though, I want to check which option button is
clicked, I did it like this:

If XDocument.DOM.selectSingleNode("/my:myFields/my:Status") = "Accept"
End If

But when I preview it there's an error.What's the proper way to do this?

> Hey,
> This should be pretty easy, open the properties for each option button
[quoted text clipped - 15 lines]
> > clicked.How do I do this?
> > Thanks guys.Really appreciate any help..
Ben Walters - 29 May 2006 07:11 GMT
That depends on what you want to do with the information.
E.g. if you are using that information to hide other controls then you can
do this from the conditional formatting area in the properties page.
The solution you have provided should work, are you able to send through the
error message you recieve?

Cheers
Ben

> Thanks that worked!
> I have another problem though, I want to check which option button is
[quoted text clipped - 24 lines]
> > > clicked.How do I do this?
> > > Thanks guys.Really appreciate any help..
bleh12891 - 29 May 2006 10:19 GMT
Got it working!
Thanks!

> That depends on what you want to do with the information.
> E.g. if you are using that information to hide other controls then you can
[quoted text clipped - 33 lines]
> > > > clicked.How do I do this?
> > > > Thanks guys.Really appreciate any help..
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.