Jump to content
Sign in to follow this  
sspyrou

radio buttoms and scripts.

Recommended Posts

hi there

i have a radio buttom with to options. I want to set it up such that clicking one of the options will add the current date into a seperate field, where as clicking the other will not. Im having trouble getting my head round how i should assemble the script.

can anyone help?

Share this post


Link to post
Share on other sites

If you have the default value for the field (your radio buttons) than all you need is an script attached to it(after disallowing access to field) that state

Set Field [your field,Case(your field=value1,value1,value2)]

If[your field=value1]

Set Field [date field, some date]

end if

Otherwise if you don't provide the default value to your field than you should create to ovals place them above(underneath) circles of radio buttons field and attach the scripts (after disallowing access to field)???

script for value 1

Set Field [your field, value1]

Set Field [date field, some date]

script for value 2

Set Field [your field, value2]

HTH

Dj

smirk.gif

Share this post


Link to post
Share on other sites

hi dj

you make it sound straight forward:)

at a risk of sounding a bit thick.. how do i specify a default for a field

ss

Share this post


Link to post
Share on other sites

auto-enter data... in Define Fields, Options.

Share this post


Link to post
Share on other sites

TechInfo Knowledge Base at FMI's web site is a very useful resource. You might find this article useful.

Article 102615

Starting Scripts by Checkbox or Radio Button

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.