Welcome to the LimeSurvey Community Forum

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

Suffixe in Matrix (Zahlen)

  • HETILV
  • HETILV's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 3 days ago #262574 by HETILV
Suffixe in Matrix (Zahlen) was created by HETILV
Bitte helfen Sie uns, Ihnen zu helfen und füllen Sie folgende Felder aus:
Ihre LimeSurvey-Version: 6.5.4
Eigener Server oder LimeSurvey-Cloud: Eigener
Genutzte Designvorlage: Vanilla
==================
Hallo,

ich würde gerne bei einer Matrix (Zahlen) Frage mit Eingabefeldern Suffixe hinter die Eingabefelder stellen. Ich hatte hier im englischen Forum auch etwas gefunden, aber leider funktioniert es nicht ganz. Ich habe im Fragenquellcode ein Javascript eingefügt, aber leider stehen meine gewünschten €-Suffixe nun unterhalb der Eingabekästen, obwohl sie dahinter sollen.
Kann mir jemand helfen? Ich habe von Java absolut keine Ahnung.

Gruß
HETILV

 

File Attachment:

File Name: limesurvey...4695.lss
File Size:32 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 3 days ago #262585 by Joffm
Replied by Joffm on topic Suffixe in Matrix (Zahlen)
Hallo
hier wäre es gewesen.
[url] forums.limesurvey.org/forum/design-issue...er-and-adding#220546 [/url]
Code:
<script type="text/javascript">  
  $(document).on('ready pjax:scriptcomplete',function(){
    // Input suffix
    $('#question{QID} :text.form-control').after('<span class="inserted-suffix"> €</span>').css({
      'display': 'inline-block',
      'width': '80%'
    });
    $('#question{QID} input[type="text"]').css({
        'width': '50%'
    });
  });
</script>

Gibt dann dies
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • HETILV
  • HETILV's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 3 days ago #262595 by HETILV
Replied by HETILV on topic Suffixe in Matrix (Zahlen)
Hallo Joffm,

vielen lieben Dank. Diesen Forumbeitrag hatte ich nicht gefunden.
Jetzt funktioniert es.
Danke.

Gruß
HETILV

Please Log in to join the conversation.

Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose