{"id":1100,"date":"2018-10-24T20:47:12","date_gmt":"2018-10-24T20:47:12","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1100"},"modified":"2018-10-24T20:47:12","modified_gmt":"2018-10-24T20:47:12","slug":"html-warn","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/html-warn\/","title":{"rendered":"html.warn"},"content":{"rendered":"<p class='command-format'><code>getHtml(id).warn()<\/code> <em>(since beta 0.3)<\/em><\/p>\n<p>Displays an error message for each of the obligatory fields from the HTML document that have not been filled yet. See the IBEX documentation about the Form controller for a discussion of how fields are set as obligatory.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>[js highlight=&#8221;8&#8243; try=&#8221;true&#8221;]newHtml(&#8220;demographics&#8221;, &#8220;example_intro.html&#8221;)<br \/>\n    .print()<br \/>\n,<br \/>\nnewButton(&#8220;continue&#8221;, &#8220;Continue to the next page&#8221;)<br \/>\n    .print()<br \/>\n    .wait(<br \/>\n        getHtml(&#8220;demographics&#8221;).test.complete()<br \/>\n            .failure( getHtml(&#8220;demographics&#8221;).warn() )<br \/>\n    )[\/js]<\/p>\n<p>Prints the content of <em>example<\/em>intro.html_ onto the page and adds a <em>Continue<\/em> button below it. The button is validated only when all the obligatory fields from <em>example<\/em>intro.html_ have been filled.<\/p>\n<p>If the button is clicked and at least one obligatory field has not been filled, the <code>warn<\/code> command is executed and will display an appropriate error message.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"wiki_cats":[11,13,5,4,20],"wiki_tags":[],"class_list":["post-1100","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-action-command","wiki_cats-command","wiki_cats-documentation","wiki_cats-element","wiki_cats-html-element"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki"}],"about":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/types\/yada_wiki"}],"author":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/comments?post=1100"}],"version-history":[{"count":1,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1100\/revisions"}],"predecessor-version":[{"id":1101,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1100\/revisions\/1101"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1100"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1100"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}