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

TOPIC: Modifying the self-registration text

Modifying the self-registration text 5 months 1 day 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 5 months 1 day 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.148 seconds
Donation Image