Jump to content
Server Maintenance This Week. ×

Automatically Add Field Entry to Value List


scchang

This topic is 2362 days old. Please don't post here. Open a new topic instead.

Recommended Posts

FM 16.

I would like to have new field entries automatically be added to the value list for the same field. I tried searching but wasn't able to find any references to this. Apologies if it has been previously addressed and appreciate any advice. Thanks.

Link to comment
Share on other sites

Hi scchang,

Which Value List are you using,

Custom Values?

Use a Value List from another file?

Values from a field?

Are you allowing entry to it?

Is it limited to who can make change?

HTH,

Lee

Link to comment
Share on other sites

3 minutes ago, Lee Smith said:

Hi scchang,

Which Value List are you using,

Custom Values?

Use a Value List from another file?

Values from a field?

Are you allowing entry to it?

Is it limited to who can make change?

HTH,

Lee

Good questions and sorry for not providing more detail. It is a custom value list from the same file specifically for the field in question. Anyone can make an entry or change.

Thanks for your interest,

Steve

Link to comment
Share on other sites

For my dull brain this time of day. :o 

Custom Value list has "Allow entry of 'Other" values,  which will allow anyone with privileges to add to the existing Value List.

If this isn't what you are asking, let me know.

Lee

Link to comment
Share on other sites

On 11/2/2017 at 9:11 PM, Lee Smith said:

For my dull brain this time of day. :o 

Custom Value list has "Allow entry of 'Other" values,  which will allow anyone with privileges to add to the existing Value List.

If this isn't what you are asking, let me know.

Lee

Thanks Lee.

I changed the field to a pop up menu from drop down list to enable "Allow entry of other values". When I choose "Other" from the list, a dialog box appears and I can enter a new value which appears in the field. However, in subsequent records, the newly entered value does not appear. Is there something I can do so that the newly entered value is retained in the value list?

Link to comment
Share on other sites

It's been a long time since I used that options. I like to control the values.

The FileMaker helps say

To allow a user to add or change values in the value list across records, select Allow editing of value list. An "Edit" option appears in the value list. This option is not available if:

•the control style is a checkbox set or a radio button set you selected Checkbox Set or Radio Button Set

•the value list you chose in step 4 uses values from a field

Link to comment
Share on other sites

If you have a one-record utility table, add a field named VLValues.

If you don't, create a table with one record and relate it to your current layout's table by a Cartesian relationship (the X operator).

Add the VLValues field and populate it with your original values.

Create a value list using the utility::VLValues field.

Create a script AddValues

If [IsEmpty (FilterValues ( yourTable::YourField; utility::VLValues  ))]
	Set Field [utility::VLValues[]; utility::VLValues & ¶ & yourTable::YourField]
End If

 

Add an onObjectExit script trigger to your dropdown field and point it at AddValues

 

Link to comment
Share on other sites

18 minutes ago, doughemi said:

If you have a one-record utility table, add a field named VLValues.

If you don't, create a table with one record and relate it to your current layout's table by a Cartesian relationship (the X operator).

Add the VLValues field and populate it with your original values.

Create a value list using the utility::VLValues field.

Create a script AddValues


If [IsEmpty (FilterValues ( yourTable::YourField; utility::VLValues  ))]
	Set Field [utility::VLValues[]; utility::VLValues & ¶ & yourTable::YourField]
End If

 

Add an onObjectExit script trigger to your dropdown field and point it at AddValues

 

I will certainly give this a try and report back. Thank you for your much appreciated help!

Link to comment
Share on other sites

This topic is 2362 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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