Jump to content
Sign in to follow this  
George TOUBALIS

Check two check boxes with a Script

Recommended Posts

Lets say we have a field (check boxes) who takes values from a value list

Lets say that the result in the field is 2 values a Dog and a Cat (2 check boxes)

Is there a way to check not the one but two check boxes "Dog and a Cat" with a Script?

Share this post


Link to post
Share on other sites

Yep, Set Field [field, "Cat

Share this post


Link to post
Share on other sites

You end up with an extra return if the item is at the beginning or end of the field. But it's too late for me to rectify that right now. I can't think anymore. I'm going to bed.

Share this post


Link to post
Share on other sites

Format a copy of the field as a standard field. After running your script, how does the data appear in the field?

Share this post


Link to post
Share on other sites

Formatting the field as standard, shows both dog and cat in the field. When I change the field format to "check boxes" only Cat is selected. BTW, I am using FMP6

Share this post


Link to post
Share on other sites

The details depend heavily on your FM version (7 or prior), but my general approach would be:

1) Import the CSV file in a new FM table/file

2) set up a relationship between the field

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.