Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Hide progress bar first page

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 7 months ago #229342 by polbarbe95
Hide progress bar first page was created by polbarbe95
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.17
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Fruity
==================
Good afternoon, 

I have recently came across this topic  Hide progress bar in welcome page - LimeSurvey forums , on how to hide the progress bar in the cover page which might be quite redundant. However I do not know where to apply the code they are mentioning. 

The other option I found out is:  How hide progress bar just for one question? - LimeSurvey forums  but I guess that does not apply to the welcome page. 

Any tips on that matter? 

Thanks in advance, 



 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #229344 by Joffm
Replied by Joffm on topic Hide progress bar first page
Hi, Denis' solution is to add this IF-statement to the "progress_bar.twig" of your extended theme.

Surround the "top container" DIV section
 
with the IF
Code:
{% if (aSurveyInfo.aNavigator.show and aSurveyInfo.include_content != 'firstpage') %}
...
{% endif %}

What you always should do to find out these things:
Examine the page with a webdevelopment tool (F12 in most browsers)
You will see the affected classes and the effects if you change something.
 
 

You see the class is ".progress".
So with a
Code:
<style type="text/css">
.progress {
  display:none;
}
</style>
in the source code of the survey description or welcome message the progress bar disappears.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: polbarbe95

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #229345 by tpartner
Replied by tpartner on topic Hide progress bar first page
...also this for detecting various pages in twig files - forums.limesurvey.org/forum/can-i-do-thi...y-show-footer#204437

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: polbarbe95

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 7 months ago #229404 by polbarbe95
Replied by polbarbe95 on topic Hide progress bar first page
Thank you so much Joffm for your detailed answer. It worked perfectly and, most importantly I understood it quite well!

All the best, 

Pol 

Please Log in to join the conversation.

More
1 year 10 months ago #241721 by Plunet
Replied by Plunet on topic Hide progress bar first page
There is an even easier way:
In the progress_bar.twig the condition line looks like this:
{% if aSurveyInfo.showprogress == 'Y' and aSurveyInfo.format != 'A' and not aSurveyInfo.aCompleted %}

You can add the condition of it not being on first page (as used above too: aSurveyInfo.include_content != 'firstpage':

{% if aSurveyInfo.showprogress == 'Y' and aSurveyInfo.format != 'A' and not aSurveyInfo.aCompleted and aSurveyInfo.include_content != 'firstpage' %}


This should do the trick, too but with less amendments.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose