Disabling Text Box
This topic contains 26 replies, has 4 voices, and was last updated by Giri 7 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: profile
-
AuthorPosts
-
September 19, 2017 at 1:22 pm #434
Hi all,
I seem to have posted in the incorrect forum previously, hoping you guys could help me solve my problem.
I need assistance disabling a textbox in user’s profiles. I want to insert a text box into my user’s profiles and disable the user from editing it so only I am able to.
Thank you in advance, this plugin is perfect for what I need.
September 21, 2017 at 6:13 am #451Hi there,
Sorry, I’m not really sure if I’m getting this. Do you think you can share some screenshots? Or share the URL of the site in question?
Thanks!
September 21, 2017 at 9:41 am #453Hello,
Since talking with you last we have decided to add a “admin only” option which will allow this, if you are not in a rush then it should be in the next release 🙂
Thanks,
Stiofan
September 21, 2017 at 10:25 am #454Hi Stiofan,
That’s awesome! Although, I am in more of a rush than not. How long until the next release – approximately.
September 21, 2017 at 10:35 am #455I’ll flag this for Giri who is working on the feature to see if he has an idea of when it will be ready.
Thanks,
Stiofan
September 21, 2017 at 10:42 am #456Thank you so much, keep me updated 🙂
September 21, 2017 at 1:25 pm #461Hi there,
Thanks for your patience.
I’m about to work on this feature. But I need few details for better understanding of your requirement.
I can add a “for admin use only” setting field in the form builder. But can you explain how you want it to behave?
Lets call this custom field X and you have set this to “for admin use only”.
Do you want this X field available in register form and disable only the editing privilege for the user?
OR
You want this field completely available only to admin? Meaning user cannot submit any value for this field but only set by you.
If it is the latter, can you give me an example / use case ?
Thanks
September 21, 2017 at 1:43 pm #462Hi Giri,
Thank you for following up.
Personally, this is how I would like this feature to behave.
Field X can only be edited by myself – the Admin. Therefore, the user can not edit the field or make any changes to it whatsoever. I would like this field only in the Profile page of the user, it does not need to be in the Registration form because this value may change in the future and is not necessary in signing up on the website initially.
Example: A user signs up on the website. They then choose to purchase a plan or program listed on the website – Let’s say there are 3 different plans. So the user purchases Plan B. I can then edit their profile to say they have purchased Plan B. So it may read in their profile:
Purchased Plan
Plan B
So the user can then see that they have purchased Plan B but they can not edit this field.
I hope this makes sense. Now, this feature is what I personally need. If you think there may be other uses for this option that can benefit others then please add it.
Thanks again!
September 21, 2017 at 6:06 pm #466Hi there,
Thanks for the feedback.
I have added the feature you asked.
You can download the development copy from here and use it.
https://github.com/mistergiri/userswp
Thanks
September 21, 2017 at 6:16 pm #467HI Giri,
Thank you for the speedy addition. I hate to say.. but I wanted the feature to let the user actually see the field and just not be able to edit it. I need this information to be available to the user, but the user won’t be able to edit it.
I’m sorry.. 🙁
September 21, 2017 at 6:18 pm #468Yes I know what you mean 🙂
You probably not set the field to public or doesn’t enable the location in show_in
Let me know if thats really a bug.
Thanks
September 21, 2017 at 6:20 pm #469Oh perfect.
These are the settings I have set:
Is Active?: YES
For admin use only?: YES
Is public?: YESIt is still hidden from users page though
September 21, 2017 at 6:22 pm #470Show in what locations?: => “Users page”
September 21, 2017 at 6:23 pm #471Yes, I also have that option enabled, I added all available locations to check and it is still hidden
September 21, 2017 at 6:28 pm #472Thats weird.
Did you overwrite existing plugin code?
If yes then you need to deactivate and reactivate the plugin again.
The plugin creates a new column in the table.
Try refreshing the page after you setting for_admin_use value. If it is set to yes, then most likely its a bug.
Give me the field name and type. I’ll try in my local.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket