December 2, 2014 at 3:30 pm #11862
Hello, I have added a few custom fields to the registration form. Everything is ok but i would like to make a custom field read-only on the profile page.
For example, a user is registering to the website completing all required fields (including custom fields). At one point he goes to the profile and want to edit some fields. Is there a possibility to make certain custom field read-only on the profile page so the user can edit that field anymore?
Or can you give me some hints on where to do this in the code?
Thanks.December 2, 2014 at 11:38 pm #67140
The following addon has an option to make read only custom fields:December 8, 2014 at 12:44 pm #67141
I’ve installed the addon but you can’t specify if a field is read-only only on profile page and not on registration form as i want.
Using this addon created duplicate field even if I’ve used same name for a field created before installing the addon.
Do you have a solution?
Thank you!December 8, 2014 at 10:51 pm #67142
Uncheck the “Show in Registration Form” checkbox. That way the field will only be shown in the edit profile form and it will be readonly. So whatever value you (the site admin) specify in that field (by editing the profile from the admin side) will be visible to the user when they go to their profile page. However, the value can’t be changed. Isn’t that what you wanted?
When you create a new custom form, it is a completely new form that you can customize. It doesn’t take into account what you did in the custom fields earlier.December 9, 2014 at 8:40 am #67143
Let me explain again my initial question.
On the registration form i have a field called “Institution” which can be filled by the user (it’s not readonly, it can be changed).
On the edit profile page, the field “Institution” should be visible but readonly, so the user can’t change that field anymore.
Is this possible with the addon?
Thank you!December 10, 2014 at 1:20 am #67144
I see what you need. We will make a change to the addon that should allow you to do what you are after. I will get back to you after we make the change.December 15, 2014 at 9:38 am #67145
Any update on this?
Thank you!December 16, 2014 at 3:52 am #67146
This change has been implemented. I have sent you an update via email.December 19, 2014 at 3:04 pm #67147
Thank you. The addon is working as requested.
Please, give me some hints on other issue.
When a user is registering to the website i want to make a validation (for example to check if the user IP is in a list) and if the condition is validated, then the user is registered by confirmation email. Else, if the condition is not validated, the user is sent to admin approval.
Is there a way to achieve this? Maybe a hook in the addon where to insert the custom condition?
Thank you!December 19, 2014 at 11:57 pm #67148
The membership plugin has a blacklisting feature where it can prevent a blacklisted IP or email address from registering. Have you checked that feature? You can find it under the following interface:
Members -> Manage BlacklistDecember 22, 2014 at 8:53 am #67149
That is not what i want, but i found the function: emember_create_member from save_reg_data.php where can i insert my custom code.
There is another thing with the addon. The select fields have only the value for Options, but i need to specify both value and label like in the emember custom field (not in the addon) where you specify a string like this” 1=>value, 2=>value.
I need this because the select filed we need has lots of values (around 100) and it’s hard entering one by one, and because i need to specify a certain id for each value (like: 433 => ‘Option 3’).
Can you give me a hint where to change the select custom field to be like the one on emember custom field?
Thank you.January 6, 2015 at 9:21 am #67150
Any update on my issue?
Thank you!January 6, 2015 at 11:09 pm #67151
You can customize the label of each custom field by editing that field in the form builder.
When you edit a field in the form builder, you will see the following fields which is where you can specify the label:
Label In Registration Form.
Label In Edit Profile Form.
There is also a field called “Default Value” that lets you set a default value in that field.January 7, 2015 at 8:05 am #67152
Hello, I’m talking only about the “select” field.
In this image: [http://cl.ly/image/0Q091B372806?_ga=1.162780735.2017849863.1416469099] you can see a dropdown list (select field) created in custom fields without the form builder addon.
In this image: [http://cl.ly/image/0r2C2d1m1y30?_ga=1.191051433.2017849863.1416469099] you can see a select field created with the form builder addon.
As you can see, in the form builder addon, for the select field, each item int the dropdown has to be entered one per line, and you can’t set the value and the displayed text. In the custom field you enter all items like this: 1=>”Option 1″, 2=>”Option 2″.
How can i enter the items in the form builder the same way as in custom fields.
I want this because:
1. i have around 100 items in that list and is not easy maintaining them one by one.
2. i need an exact correlation between the value and the displayed text, like this: 1=>”Option 1″, 2=>”Option 2″, that must be maintained.
How can i achieve this?
Thank you.January 7, 2015 at 10:59 pm #67153
I see what you mean. We don’t have an option for that. The plugin manages that internally after you configure the options.
- You must be logged in to reply to this topic.