Check out the LimeSurvey source code on GitHub!

How can I edit the REGISTERFORM in Register .pstl?

More
5 years 6 months ago #64895 by PeterDr1
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

Please Log in to join the conversation.

More
5 years 6 months ago #64897 by Owon_nl
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

Please Log in to join the conversation.

More
5 years 6 months ago #64898 by PeterDr1
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.

Please Log in to join the conversation.

More
5 years 2 days ago #75057 by hrshdhgd
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

Please Log in to join the conversation.

More
4 years 11 months ago #75257 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 11 months ago #75265 by hrshdhgd
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!

Please Log in to join the conversation.

More
4 years 11 months ago #75280 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #75285 by hrshdhgd
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: 4 years 11 months ago by hrshdhgd.

Please Log in to join the conversation.

More
4 years 11 months ago #75363 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form