Welcome, Guest
Username: Password: Remember me

TOPIC: Consent form radio button strangeness

Consent form radio button strangeness 3 years 4 months ago #64748

  • doodsonj
  • doodsonj's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 2
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
The administrator has disabled public write access.

Re: Consent form radio button strangeness 3 years 3 months ago #64755

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4410
  • Thank you received: 842
  • Karma: 385
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: doodsonj

Re: Consent form radio button strangeness 3 years 3 months ago #64756

  • doodsonj
  • doodsonj's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 2
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,
The administrator has disabled public write access.

Re: Consent form radio button strangeness 3 years 3 months ago #64762

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6658
  • Thank you received: 887
  • Karma: 263
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.
The administrator has disabled public write access.
The following user(s) said Thank You: doodsonj

Re: Consent form radio button strangeness 3 years 3 months ago #64764

  • doodsonj
  • doodsonj's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 2
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.
The administrator has disabled public write access.

Re: Consent form radio button strangeness 3 years 3 months ago #64766

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6658
  • Thank you received: 887
  • Karma: 263
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.
Last Edit: 3 years 3 months ago by DenisChenu. Reason: remove some BR
The administrator has disabled public write access.
The following user(s) said Thank You: doodsonj

Re: Consent form radio button strangeness 3 years 3 months ago #64767

  • doodsonj
  • doodsonj's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 2
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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.195 seconds
Donation Image