Have an idea?

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

Manipulating page control buttons

Hi,

I wanted to manipulate the buttons going to the next or previous pages by one of 2 methods:
A) hide the default buttons and add my custom buttons where I I have 4 buttons, one for next page, one for previous page and 2 to change some variables on the question page, I want all four to be on the same line ( I managed to add the buttons I want but could not hide the original ones)
B) add the 2 custom buttons between the default page controlling buttons & changing the labels on the original buttons.

Can anybody help me solve this issue?!
Thanks a lot

AMYN
asked Apr 16 by AMYN Bronze (1,335 points)

1 Answer

0 votes
The entire page submission element can be hidden with this CSS:

<style>
.submit_div {
    display: none;
}
</style>


If you need to keep that element but hide the actual buttons themselves:

<style>
#previous_button, #next_button {
    display: none;
}
</style>
answered Apr 16 by Zachary Platinum Sawtooth Software, Inc. (121,725 points)
Well, I am using the submission element in my submission buttons, and when I do that The original submission buttons lose their functionality and just remain on the screen without any use. That is why I want to hide them.
But if I use this code, the buttons I added also disappears.
What do you suggest?
The second code should only hide the default buttons, not the buttons that you are adding yourself.

I suppose it might misbehave if the buttons you are adding reuse the IDs "previous_button" or "next_button."  If that is what is happening, you'll want to use unique IDs for your new elements.
Well, what you are speculating is true, because I am reusing the  IDs "previous_button" and "next_button." they also disappear.
I am reusing them because I want to position them in a certain location on the page.
what is your suggestion if still I want the buttons to perform the (previous) (next) function but position them in a different position in the page?
The CSS and JavaScript rules that define the appearance and behavior of the previous buttons could be applied to new buttons without reusing those IDs.  Recreating the contents of SSI_SubmitInitialize (found in your survey's main JavaScript file) with your own IDs should handle the behavior aspects.
...