This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:create:functions:textlink [22.01.2018 14:54] – [Example 2] admin | en:create:functions:textlink [29.09.2020 18:23] (current) – [Multilingual Surveys] sophia.schauer | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== textlink() ====== | ====== textlink() ====== | ||
| - | '' | + | '' |
| It is equally possible to display text (e.g. a lengthy label) in a new window (pop-up), instead of directly in the questionnaire. The text will appear in the same layout as it would in the questionnaire. | It is equally possible to display text (e.g. a lengthy label) in a new window (pop-up), instead of directly in the questionnaire. The text will appear in the same layout as it would in the questionnaire. | ||
| * // | * // | ||
| - | * // | + | * // |
| + | * < | ||
| + | * < | ||
| * // | * // | ||
| * // | * // | ||
| Line 23: | Line 25: | ||
| - | ===== Example | + | ===== General |
| For the following example, a new text element with the ID " | For the following example, a new text element with the ID " | ||
| Line 41: | Line 43: | ||
| </ | </ | ||
| - | ===== Example 2 ===== | + | ===== Link as Placeholder |
| Often, it is simpler to place the link in the questionnaire using placeholders. The following PHP code is put above a question that uses the placeholder '' | Often, it is simpler to place the link in the questionnaire using placeholders. The following PHP code is put above a question that uses the placeholder '' | ||
| Line 50: | Line 52: | ||
| </ | </ | ||
| - | ===== Example 3 ===== | + | ===== Control the size of the pop-up |
| The following PHP code opens a pop-up window with a size of 640 × 400 pixels. | The following PHP code opens a pop-up window with a size of 640 × 400 pixels. | ||
| Line 57: | Line 59: | ||
| $link = textlink(' | $link = textlink(' | ||
| html('< | html('< | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Multilingual Surveys ===== | ||
| + | |||
| + | Depending on the language version, either "Text nochmal zeigen" | ||
| + | |||
| + | |||
| + | <code php> | ||
| + | $link = textlink(' | ||
| + | ' | ||
| + | ' | ||
| + | )); | ||
| + | html('< | ||
| </ | </ | ||