Modern theme doesn't support text in continue buttons by default (i.e., contbtntext
). However, if you need to show such text, e.g., "Click to continue", you can use this code in a locally saved version of the button/continue.tx
file in your survey's Files area:
%% my $text = 'Insert Text Here'; %% my $value = $text || get_resource('CONTINUE'); %% if $image { %% include img { src => $image, alt => $value }; %% } else if $text { %% include input { type => 'submit', name => 'contbtn', id => 'contbtn', class => 'i-button i-contbtn', text => $value, value => $text }; <style type="text/css"> input.i-button.i-contbtn#contbtn { background: none; border: #355c8c solid 3px; width: auto; border-radius: 30px; color: #355c8c; text-shadow:none; } </style> %% } else { %% # override below to remove the $value, since we use a background image for the continue button, and pass $text for aria-label %% include input { type => 'submit', name => 'contbtn', id => 'contbtn', class => 'i-button i-contbtn', text => $value, value => '' }; %% }
Where to add the file
Go to Structure>Files. In the Survey File Manager applet, you should see a folder (directory) for your survey, and inside of this folder is a "theme" folder. Click on this folder.
With the "theme" folder selected, click on the Add new directory button to add a folder. Name it "button".
The theme folder will open and show the new "button" folder.
With the "button" folder selected, click on the Add new file button. Name the new file "continue.tx".
Paste the code from the snippet above into the right pane, making sure to change the text from "Insert text here" to whatever you want your continue button to say. Click on the floppy disc (Save) icon to save it.
Comments
0 comments
Please sign in to leave a comment.