Changing the Question index from dropdown to buttons

Mehr
10 Monate 2 Wochen her #179381 von 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 , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her #179385 von 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.20 hosted on LS servers, not installed locally.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her - 10 Monate 2 Wochen her #179387 von 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 , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Letzte Änderung: 10 Monate 2 Wochen her von DenisChenu.
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her #179394 von 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.20 hosted on LS servers, not installed locally.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her #179397 von 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 , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her #179424 von krosser
I read everything but sometimes it is very difficult to understand what you write. Sorry.

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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Monate 2 Wochen her - 10 Monate 2 Wochen her #179427 von DenisChenu

krosser schrieb: 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 , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Letzte Änderung: 10 Monate 2 Wochen her von DenisChenu.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha