Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi,

I am trying to figure out a way I can have the user insert text based on choosing an option from a drop down list. I have a bunch of different "template" texts, to be used based on a situation... i can't figure out how to script it.

vandy

Posted

Vandy:

Let's say your main text field (where you want to put the text) is tTextField (regular text field), and your drop-down (where you're storing your templates) is gTextField (text field, global). In your layout, set gTextField to be a pop up menu, using values from a custom value list, which you can define as TextField. In the layout, format the pop up menu to allow the user to edit the value list (include Edit...). Now you've got a pop-up value list, which you can edit. Click on Edit.. and enter (or paste) your text values.

Now, on the layout, create a button that says "Insert Text". Create a script for the button, called "Insert Text". That script will simply be:

Set Field [tTextField; gTextField]

Which would replace the contents of tTextField with the contents of gTextField. If you wanted to enter text in tTextField and then add the contents of gTextField to that, the script would be:

Set Field [tTextField; tTextField & gTextField]

HTH

-Stanley

Posted

Stanley,

Thanks for your reponse, but you lost me about half way through... the template that I am trying to add may be paragraphs at a time. After I create the button, the fields, where do I store the paragraphs of text and how do I bring them over? You lost me!

Sorry, I'm slow!

  • 7 years later...
  • Newbies
Posted

I am trying to put a pull down box with different items in it and when you click a item descriptions of that item would appear in a text box bellow it. Could someone explain how to get the gcode and text box in that example? any help would appreciated.

This topic is 4315 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.