Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

prevent clients from editing custom fields

Alexandre B. shared this idea 6 years ago
Under Consideration

Hello,

currently you can prevent the fields of whmcs standards, would be a good idea to have the possibility of preventing the custom fields.

Regards,

Alexandre B.

Comments (18)

photo
1

Every country has it's own ID that can't be changed or standardized.

WHMCS team, do you understand the importance of that? Today I'm forced to copy my custom fields input to another hidden admin entry, so that I can guarantee that nobody will ever delete it.

photo
1

@Anderson they don't uderstand becouse this request has not enough likes;) They only look on the request with >100 likes.

So, you can use this hook: https://developers.whmcs.com/hooks-reference/everything-else/#customfieldsave

and compare values beetwen save with current value. This is way how you can prevent custom fields this time.

Aditional I added readonly atribute to html input block by JS.

photo
1

Thank you for your tip. I haven't been notified of your reply.

Will try that!

photo
photo
1

@Lukasz do you mind posting your code using the hook that would prevent the save?

Thanks.