{"id":5211,"date":"2017-10-12T18:38:12","date_gmt":"2017-10-12T18:38:12","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=5211"},"modified":"2017-10-27T22:40:27","modified_gmt":"2017-10-27T22:40:27","slug":"global-variables","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/global-variables\/","title":{"rendered":"Global Variables"},"content":{"rendered":"<p>A Global Variable is a Project-level Variable. It is capable of capturing and applying text and\/or numeric values from one page across multiple pages of output. To add a Global Variable to a project, right click the Project name and select Add Global Variable.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5214\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png.png\" alt=\"\" width=\"287\" height=\"414\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png.png 287w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png-208x300.png 208w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png-104x150.png 104w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png-250x361.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/53png-125x180.png 125w\" sizes=\"(max-width: 287px) 100vw, 287px\" \/><\/a><\/p>\n<p>The Global Variable dialog box appears. Enter the global Variable name and then enter the number of lines the global Variable will need to repeat.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/54.bmp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5213\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/10\/54.bmp\" alt=\"\" width=\"374\" height=\"189\" \/><\/a><\/p>\n<h2>How to implement<\/h2>\n<p>The Global Variable can be populated with a form Variable and\/or add customized Function.<\/p>\n<p>1. Create a form Variable to implement as a Global Variable from the Viewer window by right-mouse clicking and selecting Add Variable.<\/p>\n<p>2. Enter a Variable name and select OK.<\/p>\n<p>3. Create a Procedure that sets the value of the global Variable to your new form Variable. From the Current Project window right click your selected form and select Add Pre-condition Procedure &gt; Set Variable.<\/p>\n<p>4. The Procedure Properties dialog box displays. Enter a Procedure name and select the form Variable you created earlier. Select OK.<\/p>\n<p>5. The Set Variable Action dialog box displays. Select the Global Variable created earlier. The Procedure now sets the global Variable. A condition on the Procedure must also be set in order for the Procedure to implement across multiple pages. The condition must match only on the first page.<\/p>\n<p>6. If you would like to implement an action based on the global Variable, proceed with creating an action using the global Variable on the selected form.<\/p>\n<h2>Global Variables with Post Condition Procedures<\/h2>\n<p>Setting a global variable with a post-condition procedure can cause errors in the eFORMz Composer. If you are setting a global variable in a form for use in another form, it is recommended that you use a pre-condition procedure to do so. If you use a post-condition procedure and you open the actions in the other forms it will cause an error, because the composer evaluates the conditions as you edit your actions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Global Variable is a Project-level Variable. It is capable of capturing and applying text and\/or numeric values from one page across multiple pages of output. To add a Global Variable to a project, right click the Project name and select Add Global Variable. The Global Variable dialog box appears. Enter the global Variable name [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[128],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5211"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=5211"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5211\/revisions"}],"predecessor-version":[{"id":5332,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5211\/revisions\/5332"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=5211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=5211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=5211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}