Disabling Text Box

This topic contains 26 replies, has 4 voices, and was last updated by  Giri 3 years ago.

Tagged: 

  • Author
    Posts
  • #434

    BTC Renew
    Free User
    Post count: 18

    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.

    #451

    Kor
    Moderator
    Post count: 16516

    Hi 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!

    #453

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    Hello,

    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

    #454

    BTC Renew
    Free User
    Post count: 18

    Hi Stiofan,

    That’s awesome! Although, I am in more of a rush than not. How long until the next release – approximately.

    #455

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    I’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

    #456

    BTC Renew
    Free User
    Post count: 18

    Thank you so much, keep me updated 🙂

    #461

    Giri
    Expired Member
    Post count: 3155

    Hi 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

    #462

    BTC Renew
    Free User
    Post count: 18

    Hi 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!

    #466

    Giri
    Expired Member
    Post count: 3155

    Hi 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

    #467

    BTC Renew
    Free User
    Post count: 18

    HI 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.. 🙁

    #468

    Giri
    Expired Member
    Post count: 3155

    Yes 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

    #469

    BTC Renew
    Free User
    Post count: 18

    Oh perfect.

    These are the settings I have set:

    Is Active?: YES
    For admin use only?: YES
    Is public?: YES

    It is still hidden from users page though

    #470

    Giri
    Expired Member
    Post count: 3155

    Show in what locations?: => “Users page”

    #471

    BTC Renew
    Free User
    Post count: 18

    Yes, I also have that option enabled, I added all available locations to check and it is still hidden

    #472

    Giri
    Expired Member
    Post count: 3155

    Thats 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.

Viewing 15 posts - 1 through 15 (of 27 total)

The topic ‘Disabling Text Box’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.