Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Submit Button On Multiple Pages

  How would I edit this code to get a submit button on both pages 6 and 25? This is in the survey settings, in the submit button field:
[% Begin Unverified Perl

if (PAGENUMBER()==6){

return "Submit survey";


else {return "Continue";}

End Unverified%]

I tried changing this code to text saying "Submit" and  using the code provided at the below link on just the pages where I want the submit button to show, but no luck. Any ideas?

I am using Sawtooth 7.

Thank you.
asked Oct 22, 2014 by Elise
retagged Sep 1, 2016 by Walter Williams

1 Answer

+1 vote
If I understand, the code you have is working for page 6, but you also want the same behavior on 25?  If that is the case, just add the logic for page 25 in your "if" statement:
if (PAGENUMBER()==6 || PAGENUMBER() == 25) {
answered Oct 23, 2014 by Gary Baker Silver Sawtooth Software, Inc. (7,795 points)
Wonderful!  Works like a charm.  Thank you so much, Gary!