lonesomejubilee Posted November 10, 2005 Posted November 10, 2005 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
stanley Posted November 10, 2005 Posted November 10, 2005 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
lonesomejubilee Posted November 13, 2005 Author Posted November 13, 2005 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!
comment Posted November 13, 2005 Posted November 13, 2005 See the attached demo file. InsertTextPopUp.fp7.zip
Newbies Ken_sedore Posted March 26, 2013 Newbies Posted March 26, 2013 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.
Recommended Posts
This topic is 4529 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 accountSign in
Already have an account? Sign in here.
Sign In Now