{"id":3576,"date":"2015-10-28T21:02:41","date_gmt":"2015-10-28T21:02:41","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3576"},"modified":"2021-06-22T09:56:18","modified_gmt":"2021-06-22T16:56:18","slug":"create-a-multi-line-variable","status":"publish","type":"post","link":"https:\/\/www.minisoft.com\/support\/create-a-multi-line-variable\/","title":{"rendered":"Create a multi-line variable"},"content":{"rendered":"<p>A multi-line variable is&nbsp;a variable of two or more lines of text. For example, the following address can be defined as a multi-line variable:<\/p>\n<pre>     Minisoft, Inc.\n     1024 First Street\n     Snohomish, WA 98290<\/pre>\n<p>If you use multiple variables or multiple constants to place consecutive lines of text, you must create a rule to place each line. Instead of creating a variable and corresponding rule for each line, create one variable that uses a concatenate function for each line. You can use one variable and one rule to place multiple lines of text. Complete the following steps to create a multi-line variable:<\/p>\n<ol>\n<li>Right click the form &gt; Add Variable &gt; By position and create a variable. Click OK.<\/li>\n<li>Right click the variable &gt; Add Function &gt; Concatenate.<\/li>\n<li>Type the text of the line, click Append newline, and click OK.<\/li>\n<li>Repeat s<img decoding=\"async\" loading=\"lazy\" class=\"alignright size-medium wp-image-3582\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate-300x216.jpg\" alt=\"Concatenate\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate-300x216.jpg 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate-150x108.jpg 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate-250x180.jpg 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate-210x150.jpg 210w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/Concatenate.jpg 328w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>teps 2 and 3 for each line you want to create.<\/li>\n<li>Right click the form &gt; Add Rule &gt; Place Text.<\/li>\n<li>Select the variable you created in Step 1 and click OK.<\/li>\n<li>Click Enable wordwrap.<\/li>\n<li>In Line Width, specify a length in decipoints that is longer&nbsp;than the longest line of text.<\/li>\n<li>Change other settings according to your project requirements.<\/li>\n<li>Click OK.<\/li>\n<\/ol>\n<p>You must check both <em>App<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-3584 size-full\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText.jpg\" alt=\"PlaceText\" width=\"365\" height=\"570\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText.jpg 365w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText-192x300.jpg 192w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText-96x150.jpg 96w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText-250x390.jpg 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText-115x180.jpg 115w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/10\/PlaceText-320x500.jpg 320w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/>end newline<\/em> in Step 3 and <em>Enable wordwrap<\/em> in Step 7 for the lines to print correctly.<\/p>\n<p>Line Spacing: The default value is 0, which means the lines use the same line spacing that the form uses. If you use a different font for this text, the line spacing might require adjustment. The number is the number of decipoints for each line of text. A font size of 9 points should have at least 90 decipoints per line. A number larger than this will add white space between lines of text.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A multi-line variable is&nbsp;a variable of two or more lines of text. For example, the following address can be defined as a multi-line variable: Minisoft, Inc. 1024 First Street Snohomish, WA 98290 If you use multiple variables or multiple constants to place consecutive lines of text, you must create a rule to place each line. [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[59,10],"tags":[47,702],"_links":{"self":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3576"}],"collection":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3576"}],"version-history":[{"count":12,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3576\/revisions"}],"predecessor-version":[{"id":9326,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3576\/revisions\/9326"}],"wp:attachment":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}