zelatech Posted September 2, 2016 Share Posted September 2, 2016 Hi, I have to disable editing the custom field after registration (VAT for example). I tried to delete from clientareadetails.tpl {if $customfields} {foreach from=$customfields key=num item=customfield} <div class="control-group"> <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label> <div class="controls"> {$customfield.input} {$customfield.description} </div> </div> {/foreach} {/if} but on client details page i get error "Custom Field required" any idea how to? thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 2, 2016 Share Posted September 2, 2016 check out the code at the end of the post below... https://forum.whmcs.com/showthread.php?117198-Extending-My-Details-in-Clients-area&p=473562#post473562 {if $customfields} {foreach from=$customfields key=num item=customfield} <div class="form-group"> <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label> <div class="control"> {$customfield.input|replace:'/>':'readonly />'|replace:'<select':'<select disabled'} {$customfield.description} </div> </div> {/foreach} {/if} that will disable all text custom fields from being edited. 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.