Question T6754
Visible to All Users

Is it possible to change the button color after klick or touch on Next, Prev, Start, Compled buttons?

created 4 years ago (modified 4 years ago)

[Ticket cloned from T6568: Is it possible to reset the ID of the survey results, which will be saved in database together with the results?]

Dear Serge,

Thanks for your support. I can capture now the time according to the user time zone.

One, hopefully last, open point:
Is it possible to change the button color after klick or touch on “Next, Prev, Start, Compl”-button and before a new survey page will be loaded?
I tried already to use onCurrentPageChanging event but I’m not sure if I can change css parameters which are displayed before the js of the new page will be start to render.

Maybe you have some idea.

Thanks for your support,
Chris

Answers approved by surveyjs Support

created 4 years ago

Hello Chris,
This question is related to CSS and html coding. You can override our css by adding ":active" prefix

CSS
<style>     .sv-btn:active {         transformscale(0.95);         /* Scaling button to 0.98 to its original size */         box-shadow3px 2px 22px 1px rgba(0, 0, 0, 0.24);         /* Lowering the shadow */         background-colorrgb(126, 79, 148) !important;     } </style>

Here is the example.

Thank you,
Andrew
SurveyJS Team

    Show previous comments (7)

      Here is the test example using this JSON.
      It is 1.2 sec on my computer in Chrome.

      Thank you,
      Andrew
      SurveyJS Team

        Dear Andrew,

        Great. Thanks a lot. We found some problem and could improve the loading time. It is ok now.

        Yesterday we travelled inside a train and used mobile connection to fill out the questionnaire on a test environment. Inside the train we saw that the mobile connection was not stable and not fast. Anyway, we finished our test survey, got the confirmation page on our smartphone, but we couldn’t find the data in the database.
        Can we implement an additional checking system, if the answer-data is really stored in database successfully? We use mariadb system.

        Again, thanks a lot for your support.
        Chris

          Hello,

          I created a separate ticket on your behalf: (T6786: How to show error that occurs on saving survey response?). We placed it in our processing queue and will process it shortly.