- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Add fields and validator on signup form
- boesbo
- Topic Author
- Offline
- New Member
Less
More
6 years 2 months ago #163778
by boesbo
Add fields and validator on signup form was created by boesbo
I have to create an alteration of the signup form of the survey installation:
1. create two fields: tax code, province. The province field is a select.
2. When submitting, make a check if the tax code combo => province already exists. If it exists, give an error.
Do you know a clean way to alter the core and achieve this result?
1. create two fields: tax code, province. The province field is a select.
2. When submitting, make a check if the tax code combo => province already exists. If it exists, give an error.
Do you know a clean way to alter the core and achieve this result?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago #163789
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Add fields and validator on signup form
What is the signup form of the survey installation?boesbo wrote: I have to create an alteration of the signup form of the survey installation
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- boesbo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 2 months ago #163790
by boesbo
Replied by boesbo on topic Add fields and validator on signup form
When before voting a poll asks you to register
The topic has been locked.
- boesbo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 2 months ago #163827
by boesbo
Replied by boesbo on topic Add fields and validator on signup form
I have to modify this form:
application / views / register / registerForm.php
And change this controller for validation:
application / controllers / RegisterController.php
application / views / register / registerForm.php
And change this controller for validation:
application / controllers / RegisterController.php
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago #163834
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Add fields and validator on signup form
I wonder how you manage updates of LimeSurvey? Via GIT?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- boesbo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 2 months ago #163836
by boesbo
Replied by boesbo on topic Add fields and validator on signup form
This is not the problem. I wonder if the API framework framework to exert it.
I have to change: RegisterController.php ok? Is it possible to overwrite a controller? maybe with an Event in a plugin? Is there another recommended method that is not changing the core?
I have to change: RegisterController.php ok? Is it possible to overwrite a controller? maybe with an Event in a plugin? Is there another recommended method that is not changing the core?
The topic has been locked.
- korsakov14
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 years 1 month ago #164796
by korsakov14
Replied by korsakov14 on topic Add fields and validator on signup form
Have you solved your problem in any way? I have to make a similar modification ... and I do not know how to do it without losing it when updating
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 1 month ago #165030
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Add fields and validator on signup form
Code sample :
gitlab.com/SondagesPro/extraRegisterPassword
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.