Jump to content

Lock custom fields


Recommended Posts

Hi toltis,


im guessing your refering to custom forms, disabling seperate form fields? (i could be way off here)


this eg: takes out one form field ..


<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>


Add the disabled attribute to a <fieldset> to disable all the controls within the <fieldset> at once.


<form role="form">
 <fieldset disabled>
   <div class="form-group">
     <label for="disabledTextInput">Disabled input</label>
     <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
   <div class="form-group">
     <label for="disabledSelect">Disabled select menu</label>
     <select id="disabledSelect" class="form-control">
       <option>Disabled select</option>
   <div class="checkbox">
       <input type="checkbox"> Can't check this
   <button type="submit" class="btn btn-primary">Submit</button>


now if your creating your own forms, that would give you more power over whats being nuetralized when you want it to be ..



hope that helps,




Edited by Cain72
Link to comment
Share on other sites


no, I added some custom field in user profile, and I need that can be inserted only at registration time. After that should appear disabled. Of course I need to forbid the editing, not only in the client side but also server side.


WHMCS with the method explained wrighty852, can lock only WHMCS default fields, but not custom fields.


Therefore, how could I lock this fields??

Link to comment
Share on other sites

  • 6 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated