html(
''.
buttonCode('next').
''
);
===== Example: Insert Directly in HTML Code =====
$buttonNext = buttonCode('next'); // saves the HTML code for the
$buttonBack = buttonCode('back'); // buttons in 2 variables
// Insertion of the HTML codes into the questionnaire, e.g. in a table
html('
Press this button
to go to the next page →
'.$buttonNext.'
To go back to the previous page,
press this button →
'.$buttonBack.'
');
===== Example: Use with Placeholders =====
$buttonNext = buttonCode('next'); // Saves the HTML code for the
$buttonBack = buttonCode('back'); // buttons in two variables
replace('%btnNext%', $buttonNext, 'html'); // Store for placeholders
replace('%btnBack%', $buttonBack, 'html');
text('buttons'); // display text in the questionnaire
In order for the above PHP code to work correctly, another text element with the ID "buttons" and the following content must be created in **Text Elements and Labels**.
Press this button,
to go to the next page →
%btnNext%
To go back to the previous page,
press this button →
%btnBack%
In principle, the placeholders, as well as the text, could easily be integrated onto other pages. However, the default buttons are only hidden on the page on which ''buttonCode()'' is called up.