Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Default Value for Radio Button

167 views
Skip to first unread message

Christian Meissner

unread,
Apr 5, 2004, 4:01:23 AM4/5/04
to
Hi Group,

im new in filemaker and i try to change an current layout. there are some
radio buttons which should have a default value. is there an easy way to
meet my needs.

i had tryed an script but im not so skilled in filemaker scripting (im an
perl monger *smile*).

Here my try:

if["IsEmpty(Neu)"]
set Field["Neu","ValueListItems(Neu;"Yes/No")"]
End If

thanks for helping

btw: google dont give me an answer

cu chris


Christian Meissner

unread,
Apr 5, 2004, 5:03:44 AM4/5/04
to
ok, i had have found a solution, but now i will bind the script on an

layout. so that the field 'neu' will automatically set if i go to an dataset

wich had no value in field 'neu'.

thx

"Christian Meissner" <cmei...@greenline-berlin.com> schrieb im Newsbeitrag
news:c4r3gp$2llmom$1...@ID-60748.news.uni-berlin.de...

Ursus

unread,
Apr 5, 2004, 5:10:37 AM4/5/04
to
Christian,

You are not going in the right direction. A calculated field can't be
changed. Go to the field definition. Choose your field <Neu> [textfield],
click the options button. You get a new window [options for the field
"Neu"]. Click the box next to the word [Data] en type the value you want
into the textbox on the right side. ["No"]. please use the ". For each new
record you create the value will default to no, and you can change it when
needed.

I hope this is what you want.

--

Keep Well,
VintageUrsus


"Christian Meissner" <cmei...@greenline-berlin.com> schreef in bericht
news:c4r3gp$2llmom$1...@ID-60748.news.uni-berlin.de...

Batfastad

unread,
Apr 5, 2004, 5:20:53 AM4/5/04
to
Christian Meissner wrote:

> Hi Group,
>
> im new in filemaker and i try to change an current layout. there are
> some radio buttons which should have a default value. is there an
> easy way to meet my needs.
>
> i had tryed an script but im not so skilled in filemaker scripting

> (im an perl monger smile).


>
> Here my try:
>
> if["IsEmpty(Neu)"]
> set Field["Neu","ValueListItems(Neu;"Yes/No")"]
> End If
>
> thanks for helping
>
> btw: google dont give me an answer
>
> cu chris

You're almost there...
What I would do is...

If[IsEmpty(Neu)]
Set Field[Neu,"default value"]
End If

Where "default value" is the value from the value list you want to be
the default, in your case I think either "Yes" or "No"

Someone else may some other suggestions that I don't know about but
that's how I'd do it.

Thanks

Batfastad

Howard Schlossberg

unread,
Apr 5, 2004, 11:26:14 AM4/5/04
to
If you want the radio button value to fill in automatically as soon as
you create a new record, just go into the field definitions. You can
use the auto-enter options there to set a default value. If you want
the default value to be 'No', then just mark thye 'data' option and type
in the word 'No'.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California
Associate Member, FileMaker Solutions Alliance

0 new messages