oTree Forum >

Example button

#1 by Ben

Hi, 

In a html template, is it possible to have an "example button" that does not do anything when clicked, but that is there in order to show to the participant what will their screen look like ?

Thank you in advance,

Ben

#2 by Daniel_Frey

See the documentation: https://otree.readthedocs.io/en/latest/forms.html?highlight=button#button-that-doesn-t-submit-the-form

If you want it to be in the same style as a normal Next-Button, add class="otree-btn-next btn btn-primary" to the html.

Write a reply

Set forum username