Option(Radio)button data validation problem

B

bleh12891

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..
 
B

Ben Walters

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
 
B

bleh12891

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?
 
B

Ben Walters

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
 
B

bleh12891

Got it working!
Thanks!

Ben Walters said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top