This are the priorities of configuration form.
1. Type of field
display only specific fields
#2695369: Allow only text and integer fields for field based login
2. Is mandatory or not
After submitting the configuration form, check either selected field is mandatory or not. based on that display user specific message.
3. Is unique or not
Error message to be display, In case selected field is not unique. Avoid saving configuration.
4. All users has the data or not
Warning message to be display while form submission, saying that "some of users doesn’t have data for the specific field type,".
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | issue-2.png | 52.56 KB | xaiwant |
| #8 | fbl-2696773-8.patch | 2.65 KB | n.kishorekumar |
| #6 | fbl-2696773-6.patch | 2.58 KB | n.kishorekumar |
Comments
Comment #2
xaiwant commentedComment #3
xaiwant commentedComment #4
xaiwant commentedComment #5
n.kishorekumar commented1)warning message if field is not mandatory
2)warning message if All users has not have the data
Is unique or not
Error message to be display, In case selected field is not unique. Avoid saving configuration - already implemented
please find the patch
Comment #6
n.kishorekumar commentedforgot to attach patch sorry...
Comment #7
krknth commented@kishore : _user_count() is not valid function name in particular module.
Make sure you are not using any static fields -
Comment #8
n.kishorekumar commentedUpdated the function name with coding standard
removed the static field name
Please find the updated patch
Comment #9
n.kishorekumar commentedComment #10
xaiwant commented1. type of field
display only specific fields
added multiple types of field under user account, only TEXT and INTEGER field type are listing
This is Correct as i expected
2. Is mandatory or not
After submitting the configuration form, check either selected field is mandatory or not. based on that display user specific message.
getting warning message
refer issue-2 image
3. Is unique or not
Error message to be display, In case selected field is not unique. Avoid saving configuration.
Done, getting error message on user edit page when we try to violate unique data value.
4. All users has the data or not
Warning message to be display while form submission, saying that "some of users doesn’t have data for the specific field type,".
getting warning message
Comment #11
xaiwant commentedComment #12
heykarthikwithuComment #14
heykarthikwithuCommitted..
Comment #16
heykarthikwithu