toltis Posted November 8, 2014 Share Posted November 8, 2014 Hello, how I could lock custom fields value? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
wrighty852 Posted November 8, 2014 Share Posted November 8, 2014 Go to General Settings>Other>Locked Client Profile Fields Click on the ones you want lock. 0 Quote Link to comment Share on other sites More sharing options...
toltis Posted November 8, 2014 Author Share Posted November 8, 2014 That is only to lock default fields. I need to lock custom fields... 0 Quote Link to comment Share on other sites More sharing options...
Cain72 Posted November 9, 2014 Share Posted November 9, 2014 (edited) 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> <div class="form-group"> <label for="disabledSelect">Disabled select menu</label> <select id="disabledSelect" class="form-control"> <option>Disabled select</option> </select> </div> <div class="checkbox"> <label> <input type="checkbox"> Can't check this </label> </div> <button type="submit" class="btn btn-primary">Submit</button> </fieldset> </form> 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, Cain Edited November 9, 2014 by Cain72 0 Quote Link to comment Share on other sites More sharing options...
toltis Posted November 9, 2014 Author Share Posted November 9, 2014 Hi, 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?? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted November 10, 2014 Share Posted November 10, 2014 {if $customfieldnamearray[0]|strtoupper eq "POWER"} {assign var="canedit" value="no"} {assign var="customfieldtype" value="POWER:"} {/if} and {if $canedit eq "yes"}{$customfield.input} {$customfield.required}{else}{$customfield.value}{/if} as needed in your TPL 0 Quote Link to comment Share on other sites More sharing options...
Victoria19 Posted April 14, 2021 Share Posted April 14, 2021 On 11/9/2014 at 3:32 AM, Cain72 said: hi,i have a SMS sending plugin, i want that if some one change the number , cannot use some services and have to Receive confirmation message again. please tell me your guidance 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.