- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
is there a way to just register with email without adding name in the publicreg?
- olectrix
- Topic Author
- Offline
- New Member
Less
More
10 years 4 months ago #102767
by olectrix
is there a way to just register with email without adding name in the publicreg? was created by olectrix
is there a way to just register with email without adding name in the public registration form?
The topic has been locked.
- olectrix
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
10 years 4 months ago #102775
by olectrix
Replied by olectrix on topic is there a way to just register with email without adding name in the publicreg?
OK let me be a little more explicit: where is the class "register-form" defined, in the file register.pstpl? Hope I can delete the "name" and "surname" form there, to provide real anonymity while ensuring that just one user per mail can run through the specific survey. In other words - we just need mail registration WITHOUT the name and surname form.
This is register.pstpl:
" <table class="register-table">
<tr>
<td>
<span class="warning-text">{REGISTERERROR}</span>
<p class="register-message-1">{REGISTERMESSAGE1}</p>
<p class="register-message-2">{REGISTERMESSAGE2}</p>
<div class="register-form">{REGISTERFORM}</div>
</td>
</tr>
</table>
"
Now where can I find those classes?
Hope really someone could help us - because we need this for a scientific experiment.
grtnx o.
This is register.pstpl:
" <table class="register-table">
<tr>
<td>
<span class="warning-text">{REGISTERERROR}</span>
<p class="register-message-1">{REGISTERMESSAGE1}</p>
<p class="register-message-2">{REGISTERMESSAGE2}</p>
<div class="register-form">{REGISTERFORM}</div>
</td>
</tr>
</table>
"
Now where can I find those classes?
Hope really someone could help us - because we need this for a scientific experiment.
grtnx o.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
10 years 4 months ago #102778
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic is there a way to just register with email without adding name in the publicreg?
Rather than hacking the core code, how about simply hiding those inputs (since they are not mandatory anyway).
Add this to the end of template.js:
.
Add this to the end of template.js:
Code:
$(document).ready(function() { // Only if the registration form exists... if($('table.register').length > 0) { // Hide the name input rows $('input[name="register_firstname"], input[name="register_lastname"]').closest('tr').hide(); } });
.
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: olectrix
The topic has been locked.
- olectrix
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
10 years 4 months ago #102795
by olectrix
Replied by olectrix on topic is there a way to just register with email without adding name in the publicreg?
this fix works!
would be nice if this could be a part of the global settings or/and custom survey settings in some of the next versions.
thnx a lot - now we can go online
would be nice if this could be a part of the global settings or/and custom survey settings in some of the next versions.
thnx a lot - now we can go online
The topic has been locked.
- LS_SR
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 1
9 years 10 months ago #109675
by LS_SR
Well, where can I make first and family name mandatory?
Maybe I am blind but I can not find it.
Replied by LS_SR on topic is there a way to just register with email without adding name in the publicreg?
(since they are not mandatory anyway).
Well, where can I make first and family name mandatory?
Maybe I am blind but I can not find it.
The topic has been locked.