Changing the Question index from dropdown to buttons

More
6 months 4 weeks ago #179381 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago #179385 by krosser
Well, in any case, you need to direct those buttons to something, otherwise they won't lead anywhere. You click and nothing happens. It doesn't matter if it is a weblink (in case of the default dropdown menu) or button (which is actually a list-group in our case). You have to add href="#".

I'm using the latest LS 3.17 hosted on LS servers, not installed locally.

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago - 6 months 4 weeks ago #179387 by DenisChenu
I think you need to learn HTML
button type="submit" : it's a action button submitting (in POST value) the data in the form …
It must be inside form.
Remind : i'm a PHP dev since more than 15 years, don't learn me my job …

See developer.mozilla.org/en-US/docs/Web/HTML/Element/button

An href is only available for a (link)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 6 months 4 weeks ago by DenisChenu.
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago #179394 by krosser
Well, no need for personal insults, man. I have no time or intent for it. I just had to solve the problem.

I had to add this to the button to make it work. Without that it wouldn't submit.
data-limesurvey-submit='{{ indexItem.submit }}'
<button type="submit" name="move" value="{{ indexItem.step }}" data-limesurvey-submit='{{ indexItem.submit }}' class="list-group-item {{ indexItem.coreClass }} {{ templateClass }}" >{{ indexItem.text }}</button>

Adding <a href='{{ indexItem.url }}'> in front of the button created hyperlinks.
<a href='{{ indexItem.url }}'> <button type="submit" name="move" value="{{ indexItem.step }}" class="list-group-item {{ indexItem.coreClass }} {{ templateClass }}" > {{ indexItem.text }}</button>

I'm using the latest LS 3.17 hosted on LS servers, not installed locally.

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago #179397 by DenisChenu
If you are OUT of form : us an a link with data-limesurvey-submit
If you are in form : use a buuton.

And NEVER put a button inside a a link.

You want you a link show like a button : use CSS : getbootstrap.com/docs/3.3/css/#buttons

It's not insult but you don't read what the other people write . I put this on the 1st answer : www.limesurvey.org/forum/can-i-do-this-w...-dropdown-to-buttons

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago #179424 by krosser
I read everything but sometimes it is very difficult to understand what you write. Sorry.

I'm using the latest LS 3.17 hosted on LS servers, not installed locally.

Please Log in or Create an account to join the conversation.

More
6 months 4 weeks ago - 6 months 4 weeks ago #179427 by DenisChenu

krosser wrote: I read everything but sometimes it is very difficult to understand what you write. Sorry.

It's the reason why i write : «I think you need to learn HTML» , it's clearly not an insult.

I don't give advice to a baker (about bread …), and if it's say something about bread : i don't say it false : It's his job, not mine.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 6 months 4 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!