Turn field "not editable" if already filled

13 years 6 months ago #144849 by nicophp
I know that a field can be set for not being editable, after having been filled in the registration process.

As I don't want a long registration form, what I would like is to have the possibility to have some fields turned as "not editable" after they have been filled once regardless when they are filled for the first time.

Thanks for your suggestions

Please Log in to join the conversation.

13 years 5 months ago #144881 by krileon
Can't be done without an integration. You'd need something fairly complex to alter and check ALL fields. Best I can suggest is reviewing CB Privacy plugin and its usage. You'd need to set $field->readonly to 1 if there is a value present.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 5 months ago #144924 by nicophp
Thanks for your prompt answer.

In fact, I don't have to check ALL fields, but in this case it's only 1 or 2 fields and each INDEPENDENTLY of the status of each other or of other fields.

(to better explain:
registered people have access to more content and once they upgrade their subscription, they have to fill the first and last name of a person that they will represent to access services. But afterward they cannot change the name, otherwise they can use one subscription to represent more then one person)

Please Log in to join the conversation.

13 years 5 months ago #144978 by krileon

In fact, I don't have to check ALL fields, but in this case it's only 1 or 2 fields and each INDEPENDENTLY of the status of each other or of other fields.

Right, but that's not how the API works. You can't issue a trigger for only 1 or 2 fields. Your plugin would affect all fields, but a simply IF statement can rule out other fields saving valuable resources. At any rate would still require a custom CB plugin that utilizes CB triggers in the same manner as CB Privacy.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.675 seconds

Facebook Twitter LinkedIn