The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Modifying the self-registration text

Modifying the self-registration text 4 months 1 week ago #91299

  • stevage
  • stevage's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
I can't find an easy way to modify this text, from within LimeSurvey:
You must be registered to complete this survey
You may register for this survey if you wish to take part.
Enter your details below, and an email containing the link to participate in this survey will be sent immediately.

Also, we would really like to remove the "first name" and "last name" boxes: all we want to collect is the email address. Is this possible?

We'd really prefer to host the survey on LimeService, so modifying code is out - but can do it if there's no other solution.
The administrator has disabled public write access.

Re: Modifying the self-registration text 4 months 6 days ago #91301

  • stevage
  • stevage's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Ah, I've solved it.

1. Copy the default template
2. On startpage.pstpl, insert this at the end of the HEAD tag:
<script>
$(function(){
$("[name=register_firstname]").parent().parent().hide()
$("[name=register_lastname]").parent().parent().hide()
});
</script>
3. On register.pstpl, replace {REGISTERMESSAGE1} and {REGISTERMESSAGE2} with whatever you want. (This wouldn't work if you needed multiple languages.)

Sweet!
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.180 seconds
Donation Image