GoToField = Radio Button

I have a radio button field that is defaulted to blank, but I have to validate on save to make sure it is equal to one or the other option (not blank!). I have:

If ( source.FieldGetText( "AcctType" ) = "" ) Then

	Messagebox( "Please enter the account type." )

	Call source.GoToField( "AcctType" )

	Continue = False

End If

But, I’m getting an error. What is the best way to validate a radio button field? I’m assuming since I can’t actually ‘GoTo’ the radio button field that is why it’s erroring out??

Subject: GoToField = Radio Button

Hi,

You can use an @ formula to validate your field.

In the validation field formula put something like this:

@if(@ThisValue = “”;

@Failure(""Please enter the account type.");

@Success

)

HTH

Thierry

Subject: RE: GoToField = Radio Button

Ok, thank you. I did that and am getting the error to enter the field information, but also get the Notes error saying ‘field didnt’ pass validation’ - how can i get rid of that 2nd error?

Subject: RE: GoToField = Radio Button

Take a look on this

http://www-01.ibm.com/support/docview.wss?rs=475&context=SSKTWP&dc=DB560&dc=DB520&uid=swg21380922&loc=en_US&cs=UTF-8&lang=en&rss=ct475lotus

perhaps another part of your code can cause this error…