Making Ajax Text Field read only

10 years 2 months ago #134318 by csodjd
Making Ajax Text Field read only was created by csodjd
I want to have a menu option to display a user profile, and another menu option to edit a user profile. I can't figure out how to block the ability to edit the fields, other than to use the TEXT field instead of the Ajax plugin.

Is it possible to prevent editing of an ajax text field from the frontend when accessed through a menu with

index.php?option=com_comprofiler

but have it editable from a menu when accessed through

index.php?option=com_comprofiler&task=userdetails

Craig

Please Log in to join the conversation.

10 years 2 months ago #134345 by krileon
Replied by krileon on topic Re:Making Ajax Text Field read only

Is it possible to prevent editing of an ajax text field from the frontend when accessed through a menu with

index.php?option=com_comprofiler

but have it editable from a menu when accessed through

index.php?option=com_comprofiler&task=userdetails

Yes, use just a normal text field. Using the ajax text field in such a way defeats its ajax usage, which is to be editable from frontend profile view. Otherwise it's just a text field.


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.398 seconds

Facebook Twitter LinkedIn