Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:gettextelement [02.12.2014 19:55] – [getTextElement()] alexander.ritteren:create:functions:gettextelement [26.09.2020 13:50] (current) – [getTextElement()] sophia.schauer
Line 1: Line 1:
 ====== getTextElement() ====== ====== getTextElement() ======
  
-''string **getTextElement**(string //textID//)''+''string **getTextElement**(string //textID//, [string //output format//])''
  
 Returns the HTML code for the text element with the ID //textID// as a string. Returns the HTML code for the text element with the ID //textID// as a string.
Line 7: Line 7:
   * //textID//\\ ID of the text element whose content is to be returned.   * //textID//\\ ID of the text element whose content is to be returned.
  
-**Note:** If the text element is output in the questionnaire  with a title and/or formatting, this is also included in the HTML code. However, this does not include the possible alignment (left/centred/right/justified), nor the spacing below the text element. +**Note:** If the text element is output in the questionnaire  with a title and/or formatting, this is also included in the HTML code. However, the potential alignment (left/centred/right/justified) and the spacing below the text element are not included
  
 ===== Example 1 ===== ===== Example 1 =====
Line 25: Line 25:
 ===== Example 2 ===== ===== Example 2 =====
  
-In the following example, each "a" and "A" is replaced with an underscore and the text element is subsequently displayed.+In the following example, each "a" and "A" is replaced with an underscore and the text element subsequently displayed.
  
 <code php> <code php>
en/create/functions/gettextelement.txt · Last modified: 26.09.2020 13:50 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki