{"id":724,"date":"2020-02-18T18:10:45","date_gmt":"2020-02-18T17:10:45","guid":{"rendered":"https:\/\/ekiwi.de\/?p=724"},"modified":"2020-11-07T19:54:05","modified_gmt":"2020-11-07T18:54:05","slug":"da-formmaker-bilder-in-formulare-einfuegen","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/index.php\/724\/da-formmaker-bilder-in-formulare-einfuegen\/","title":{"rendered":"DA-FormMaker &#8211; Bilder in Formulare einf\u00fcgen"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Inhalt<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi.de\/index.php\/724\/da-formmaker-bilder-in-formulare-einfuegen\/#Einfuegen_als_HTML-Code_vor_dem_Formular\" >Einf\u00fcgen als HTML-Code vor dem Formular<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi.de\/index.php\/724\/da-formmaker-bilder-in-formulare-einfuegen\/#Einfuegen_als_Base64-Bild\" >Einf\u00fcgen als Base64-Bild<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi.de\/index.php\/724\/da-formmaker-bilder-in-formulare-einfuegen\/#Nachtrag_Bilder_responsive_einbinden\" >Nachtrag: Bilder responsive einbinden<\/a><\/li><\/ul><\/nav><\/div>\n<p>In viele Felder bei der <a title=\"Webformular erstellen\" href=\"https:\/\/da-software.de\/software\/da-formmaker\/\" target=\"_blank\" rel=\"noopener noreferrer\">HTML-Formularsoftware DA-FormMaker<\/a> kann HTML-Code eingegeben werden. Wir k\u00f6nnen dies nutzen, um Bilder im Formular anzeigen zu lassen. Hierf\u00fcr haben wir zwei M\u00f6glichkeiten.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Einfuegen_als_HTML-Code_vor_dem_Formular\"><\/span>Einf\u00fcgen als HTML-Code vor dem Formular<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Die erste M\u00f6glichkeit ist ein externes Bild zu verlinken. Hierzu tragen wir einfach den HTML-Code ein. Im Beispiel wollen wir ein Bild vor dem Formular setzen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-725\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_1.png\" alt=\"\" width=\"680\" height=\"406\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_1.png 680w, \/wp-content\/uploads\/2020\/02\/html_code_form_1-300x179.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>Wir geben hier einfach etwas <a href=\"https:\/\/ekiwi.de\/html-referenz\/g-k\/img\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">HTML-Code f\u00fcr ein Bild ein<\/a>. Die Adresse des Bildes geben wir am besten in Form einer vollst\u00e4ndigen Adresse mit https:\/\/ ein.<\/p>\n<p>Das Bild kann z.B. auch zentriert ausgerichtet werden. Hierzu verwenden wir der Einfachheit halber ein DIV-Element.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-726\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_3.png\" alt=\"\" width=\"581\" height=\"113\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_3.png 581w, \/wp-content\/uploads\/2020\/02\/html_code_form_3-300x58.png 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/p>\n<p>Das Ergebnis:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-727\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_4.jpg\" alt=\"\" width=\"599\" height=\"285\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_4.jpg 599w, \/wp-content\/uploads\/2020\/02\/html_code_form_4-300x143.jpg 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Einfuegen_als_Base64-Bild\"><\/span>Einf\u00fcgen als Base64-Bild<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Im ersten Beispiel haben wir ein externes Bild verlinkt. Man kann das Bild auch direkt in die HTML-Datei einbetten. Dies machen wir, indem wir das Bild als Base64-Bild einf\u00fcgen. Base64-Bild? Kein Problem, den entsprechenden HTML-Code k\u00f6nnen wir mit unserem <a href=\"https:\/\/ekiwi.de\/free_service\/base64\/index.php\" target=\"_blank\" rel=\"noopener noreferrer\">kostenlosen Online-Tool f\u00fcr Base64-Bilder<\/a> erzeugen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-728\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_5.jpg\" alt=\"\" width=\"572\" height=\"307\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_5.jpg 572w, \/wp-content\/uploads\/2020\/02\/html_code_form_5-300x161.jpg 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/p>\n<p>Wir ziehen einfach die Bild-Datei auf den Konverter, welcher uns den HTML-Code erzeugt. Diese m\u00fcssen wir nun vollst\u00e4ndig kopieren und im Formular einf\u00fcgen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-729\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_6.jpg\" alt=\"\" width=\"388\" height=\"361\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_6.jpg 388w, \/wp-content\/uploads\/2020\/02\/html_code_form_6-300x279.jpg 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/p>\n<p>Im Beispiel wollen das Bild als Zwischentext einf\u00fcgen. Den HTML-Code f\u00fcgen wir hier einfach in das Feld ein.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-730\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_7.png\" alt=\"\" width=\"525\" height=\"338\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_7.png 525w, \/wp-content\/uploads\/2020\/02\/html_code_form_7-300x193.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>Das Ergebnis ist auch hier ein Bild. Der Vorteil gegen\u00fcber der ersten Variante ist, dass wir kein externes Bild ben\u00f6tigen. Das Bild wird direkt in die HTML-Datei eingebettet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-731\" src=\"\/wp-content\/uploads\/2020\/02\/html_code_form_8.jpg\" alt=\"\" width=\"464\" height=\"432\" srcset=\"\/wp-content\/uploads\/2020\/02\/html_code_form_8.jpg 464w, \/wp-content\/uploads\/2020\/02\/html_code_form_8-300x279.jpg 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/p>\n<p>Das Beispiel f\u00fcr den DA-FormMaker k\u00f6nnen <a href=\"\/wp-content\/uploads\/2020\/02\/beispiel_bild_daformmaker.zip\">Sie hier herunterladen<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Nachtrag_Bilder_responsive_einbinden\"><\/span>Nachtrag: Bilder responsive einbinden<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Bei <a title=\"Online Form Creator\" href=\"https:\/\/da-software.net\/en\/software\/da-formmaker\/\" target=\"_blank\" rel=\"noopener noreferrer\">responsiven Formularen<\/a> m\u00f6chte man nat\u00fcrlich, dass das Bild automatisch in der richtigen Breite erscheint. Dies geht mit folgendem Code:<\/p>\n<pre>&lt;img src=\"https:\/\/ekiwi.de\/wp-content\/uploads\/2019\/05\/beitrag-cyber-crime.jpg\" \r\nstyle=\"max-width: 100%; display:block; height: auto;\"&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-735\" src=\"\/wp-content\/uploads\/2020\/02\/responsive.png\" alt=\"\" width=\"553\" height=\"122\" srcset=\"\/wp-content\/uploads\/2020\/02\/responsive.png 553w, \/wp-content\/uploads\/2020\/02\/responsive-300x66.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>Im Style-Attribut, definieren wir die Eigenschaften f\u00fcr automatische Anpassung der Breite. Das Ergebnis:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-736\" src=\"\/wp-content\/uploads\/2020\/02\/responsive.gif\" alt=\"\" width=\"300\" height=\"196\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>In viele Felder bei der HTML-Formularsoftware DA-FormMaker kann HTML-Code eingegeben werden. Wir k\u00f6nnen dies nutzen, um Bilder im Formular anzeigen<\/p>\n","protected":false},"author":1,"featured_media":55,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[5],"tags":[72,135,19,4],"class_list":["post-724","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hmtl","tag-anleitung","tag-da-formmaker","tag-grafik","tag-html"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/comments?post=724"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media\/55"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media?parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/categories?post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/tags?post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}