Changing the Question index from dropdown to buttons

Plus d'informations
il y a 6 mois 3 jours #179381 par 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 .
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours #179385 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours - il y a 6 mois 3 jours #179387 par 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 .
Dernière édition: il y a 6 mois 3 jours par DenisChenu.
Les utilisateur(s) suivant ont remercié: LouisGac

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours #179394 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours #179397 par 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 .

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours #179424 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 3 jours - il y a 6 mois 3 jours #179427 par DenisChenu

krosser écrit: 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 .
Dernière édition: il y a 6 mois 3 jours par DenisChenu.

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!