Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
en:create:functions:buttoncode [25.08.2020 11:19] – [buttonCode()] sophia.schaueren:create:functions:buttoncode [25.08.2020 11:22] sophia.schauer
Line 20: Line 20:
  
 **Tip:** If you want to reposition the buttons in general, modify the questionnaire layout and use the placeholders ''%button.next%'' and ''%button.back%'' in the HTML template of the layout, as described in the guide to [[:en:create:layout|Questionnaire Layouts]]. **Tip:** If you want to reposition the buttons in general, modify the questionnaire layout and use the placeholders ''%button.next%'' and ''%button.back%'' in the HTML template of the layout, as described in the guide to [[:en:create:layout|Questionnaire Layouts]].
 +
 +===== Example: Next button in the middle of the questionnaire page =====
 +
 +<code php>
 +html(
 +  '<div style="margin: 4em; text-align: center">'.
 +  buttonCode('next').
 +  '</div>'
 +);
 +</code>
 +
  
 ===== Example: Insert Directly in HTML Code ===== ===== Example: Insert Directly in HTML Code =====
en/create/functions/buttoncode.txt · Last modified: 25.08.2020 11:24 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