Ask Your Question
0

Connect input field with variables [closed]

asked 2014-01-05 12:23:30 +0200

mbnoimi gravatar image

updated 2014-01-05 12:25:31 +0200

How can I connect an input field with many variables?

I just want to input a single value by input field then this value should be copy automatically to the specified variables.

Example: I'll input the following text:

"Dear InputFieldValue(Mr) Ibrahim can I call variable1(Mr) George and variable1(Mr) John?"

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-18 11:19:31.869319

Comments

What do you mean by "input field" in this context? A text field like you see in forms?

bencomp gravatar imagebencomp ( 2014-01-05 12:30:53 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2014-01-06 01:49:16 +0200

Regina gravatar image

updated 2014-01-07 14:24:05 +0200

There exist two items "input field" in the Fields-dialog, one is in dialog page "Functions" and the other in dialog page "Variables"; the latter is bind to a variable. It is that variable, that is selected from the selection list in the middle of the dialog, when you insert the input field. If you want to use the variable "User Field" with such an input field, you have to click the green check mark to add the name of the "User field" to the selection list. But I guess an invisible "Set Variable" and many "Show Variable" will work better for you, because it does not allow to edit the variable value in any place, but only by the input field (and by the hidden "Set" field).

If you use "Set Variable" and "Show Variable", then the value entered in the input field will only change the value of the variable after the position of the input field. So you need an invisible (checkbox) "Set Variable" (format "Text"), followed by the visible input field at the first occurrence of the variable text in your document; and afterwards "Show variable" whenever you need its value.

Step-by-step

  1. Set the cursor at beginning of your text. Insert > Fields > Others… > Variables.
  2. Click on item "Set Variable" in list "Type" and on item "Text" in list "Format". In the lower part enter an identifier for the variable into the field "Name", for example "Salutation". Enter an initial text into the field "Value". Check the box "invisible", because the user will not enter the values directly but use an input field. Click button "Insert". Notice, that the identifier is now listed in the list "Selection" in the middle of the dialog. Click button "Close".
  3. Set the cursor at the place of the first occurance of the variable in your text. Insert > Fields > Others… > Variables. Click item "Input Field" in the list "Type". Click on your identifier item (e.g. Salutation) in the list "Selection". Enter an information, what the user is expected to enter, in the field "Reference". Click button "Insert". You get the "Input Field"-dialog. Notice the text you entered in "Reference" is shown as topic. Enter the desired value of the variable in the field below. Click button "OK", click button "Close".
  4. Set the cursor at the place where you want to show the variable. Insert > Fields > Others… > Variables. Click on item "Show ...
(more)
edit flag offensive delete link more

Comments

Thank for reply but I couldn't know how to apply your suggestion. May you please guide me step by step how can I do it? I want to use "input field" from "Variables" page

mbnoimi gravatar imagembnoimi ( 2014-01-07 10:36:56 +0200 )edit

Thanks a lot this is exactly what I'm looking for.

mbnoimi gravatar imagembnoimi ( 2014-01-07 14:57:49 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-05 12:23:30 +0200

Seen: 2,519 times

Last updated: Jan 07 '14