Welcome, Guest
Username: Password: Remember me

TOPIC: How can I edit the REGISTERFORM in Register .pstl?

How can I edit the REGISTERFORM in Register .pstl? 3 years 1 week ago #64895

  • PeterDr1
  • PeterDr1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Thank you received: 1
  • Karma: 0
Using version 1.90+ Build 9642

I want to replace the security question with a separate input field the registration form. This input to be an Attribute in the token table

I actually had managed this in an earlier version (1.87) but have forgotten how! I can't even remember if it was the REGISTERFORM that I edited (or where to find the relevant file)

Help for the memory-challenged needed!

Thanks
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 3 years 1 week ago #64897

  • Owon_nl
  • Owon_nl's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 1
1. In the template editor select the appropriate template.
2. Then select 'register page' at menu 'screen'.
3. Then select 'register.pstpl' at menu 'standard files'
4. Make your modifications
5. Done
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 3 years 1 week ago #64898

  • PeterDr1
  • PeterDr1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Thank you received: 1
  • Karma: 0
Thanks Owon_nl :S

This is where I started but realised I need to create a form to replace the (REGISTERFORM} I can do this in html/Javascript but I'm not sure how this works with the Index.PHP file and database. Crazy thing is I did it once before but have lost that version.
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75057

  • hrshdhgd
  • hrshdhgd's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Hey PeterDr1,

Did you ever manage to find the solution to your problem. I've encountered the same issue. Any help would be appreciated!

Thanks
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75257

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
What do you want to change in detail?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75265

  • hrshdhgd
  • hrshdhgd's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
I wanted to take the First name and Last name boxes off and just retain the email address box. I think I found a solution. I re-wrote the code for email address alone and replaced the {REGISTERFORM} block with that code. Fixed the problem!

Thanks anyways!
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75280

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
Wouldn't it be easier to use some CSS to hide first name and last name fields and apply some Javascript to fill these with some dummy data?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75285

  • hrshdhgd
  • hrshdhgd's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
I tried doing that but as far as I understand from the css file, register-form is taken as 1 entity and I could not find the class directly corresponding to the first and last name boxes individually. There is a chance I could have missed it but I'm pretty sure I did not see any class/id as first/last name in the css file. Besides I am unfamiliar with Jscript. So that option didn't even strike me.

Also while I have your attention, could you tell me how could I set an email template such that when someone registers, how can the registration email read, Dear "email of registrant", ......
I tried {EMAIL} and {TOKEN:EMAIL} but both did not return desired results.

Thanks in advance!
Last Edit: 2 years 6 months ago by hrshdhgd.
The administrator has disabled public write access.

Re: How can I edit the REGISTERFORM in Register .pstl? 2 years 6 months ago #75363

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
Have a look at the available placeholders at docs.limesurvey.org/Tokens&structure=Eng...y#Email_placeholders

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.139 seconds
Donation Image