Solved

Select Item from a field list FM11

Posted on 2013-12-23
3
443 Views
Last Modified: 2014-01-22
I have a field that contains a list of items each one separated by a carriage return. Is there a way that a user can go over the field and select an item from the list?
0
Comment
Question by:PachecoPrimo
  • 2
3 Comments
 
LVL 24

Expert Comment

by:Will Loving
ID: 39738357
I'm not sure what you mean by "select"… normally to select text in a text field you simply double-click on the word or drag and select the word or lines. If you mean you want the user to select a particular item in the list, then what do you want to do with it?

In FileMaker, you can create a value list based on the values in a field (see File -> Manage -> Value Lists) which can then be displayed as a drop-down list, pop-up menu, radio buttons (select one only), checkboxes (select multiple), etc. In FileMaker, as "list" whether for a Value List or as a key field is a text string separated by carriage returns.
0
 

Author Comment

by:PachecoPrimo
ID: 39741843
Hi willmcn,
What I want to do is have the user select the text and be able to run a script.  So if I have the following list:
FIELD_A
Apple
Orange
Strawberry

If the user selects (double-click) 'Orange', I want to be able to copy this value via script and then paste somewhere else.

Is this possible?

Thanks
0
 
LVL 24

Accepted Solution

by:
Will Loving earned 500 total points
ID: 39745050
I don't know of any way to trigger a script based on the user double-clicking with a field, since double-clicking already performs the function of selecting the word that you're double-clicking on.

You could use a Script Trigger that runs on: OnObjectValidate, OnObjectSave or OnObjectExit. The trick is that the use would have to tab out or click out of the field in order to activate any of those. The script could then perform a Copy script step (with "Select All" turned off) to copy the selected value in the field.

You could also have a small button next to the field that triggers the script that performs a Copy on that field (again with "Select All" turned off).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now