Check out the LimeSurvey source code on GitHub!

Consent form radio button strangeness

More
5 years 6 months ago #64748 by doodsonj_duplicate
Hi team,

I have two checkboxes on the following webpage:
phd-research.limequery.com/index.php?sid...66&newtest=Y&lang=en

Everything works apart from an odd behaviour.

When the user checks the 'I consent...' and then clicks 'Next'... the check automatically moves back to the 'I do not consent' button before moving onto the next page.

Any ideas?

J

Please Log in to join the conversation.

More
5 years 6 months ago #64755 by tpartner
The radios sem to work fine for me but your Facebook plugin is causing 2JavaScript errors.

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: doodsonj_duplicate

Please Log in to join the conversation.

More
5 years 6 months ago #64756 by doodsonj_duplicate
I guess the consent form is browser specific as it is occurring in Safari.

And I guess the JavaScript errors are only coming up on other row sees as I can't see them in Safari.

Hmm

Thanks,

Please Log in to join the conversation.

More
5 years 6 months ago #64762 by DenisChenu
Maybe remove
/* Autocomplete styles */
ul.ui-autocomplete {
	width: 250px !important;
	padding: 5px 10px;
	list-style: none;
}
from template.js

And put it in template.css :)
/* Autocomplete styles */
ul.ui-autocomplete {
	width: 250px !important;
	padding: 5px 10px;
	list-style: none;
}

If there are an js error, you can test completely the javascript with all brother.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: doodsonj_duplicate

Please Log in to join the conversation.

More
5 years 6 months ago #64764 by doodsonj_duplicate
Hi Schnoulle.

Thanks for getting back to me. I made the changes but there was no impact.

Don't worry as it seems that it might just browser specific. It is more an annoyance than anything else.

J.

Please Log in to join the conversation.

More
5 years 6 months ago - 5 years 6 months ago #64766 by DenisChenu
In the test link i see /* Autocomplete styles */ in template.js :)

And i think you have a dom problem too:
<div style="margin-left: 80px; "><br />
  <input type='radio' 
           name="privacy" 
           value="YES" 
         onChange="if(this.checked) {
 
                     }" />
 
  </label>
  <label> I consent to take part in this study
 
<BR ...>
                     <BR ...>
  <input type='radio' 
           name="privacy" 
           value="NO" 
           onChange="if(this.checked) {
                                }" />
 
 <label> I do not consent to take part in this study
 
  </label>
 
  <BR ...>
 
<br />
<div />
TO
<div style="margin-left: 80px; "><br />
  <input type='radio' 
           name="privacy" 
           value="YES" 
         onChange="if(this.checked) {
 
                     }" />
 
  <label> I consent to take part in this study
  </label>
<br /><br />
  <input type='radio' 
           name="privacy" 
           value="NO" 
           onChange="if(this.checked) {
                                }" />
 <label> I do not consent to take part in this study</label>
 <br />
</div>

Again,<a href=' docs.limesurvey.org/tiki-index.php?page=...eg._JavaScript_etc._ '>JavaScript</a> using need a good DOM :)

And for testing remove the facebook 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 (or search sondages pro).
Last Edit: 5 years 6 months ago by DenisChenu. Reason: remove some BR
The following user(s) said Thank You: doodsonj_duplicate

Please Log in to join the conversation.

More
5 years 6 months ago #64767 by doodsonj_duplicate
Hi Schnoulle.

I have tried to code you suggested and it works perfectly now, so thank you very much for persisting with me! I guess that my tags were in the wrong place still can't see exactly what was different between the code that you suggested and the code that I used (from the workarounds) apart from the <br...> tags.

I am still learning jscript and javascript :)

I can't work out what is wrong with the Facebook link (it was a straight copy and paste from the FB website). It seems to work fine though, so I guess that shall suffice for now!

Again, thanking you :) Donation shall be on the way in the next few days (waiting until I get paid).

J.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form