Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Inserting text options.

Featured Replies

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

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

  • Author

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

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.