Non-editable custom fields

  • Posts: 197
  • Thank you received: 13
1 year 1 month ago #348933

-- HikaShop version -- : 4.7
-- Joomla version -- : 4.2.6
-- PHP version -- : 8.1

Hi.
I have created a custom field for users. is there anyway to make ths field non-editable in users profile page ?

Please Log in or Create an account to join the conversation.

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
1 year 1 month ago #348935

Hi,

In the settings of the User Syncrhonization plugin, you have a setting to turn off the edition of custom fields in the profile.
Also, in the settings of the custom field itself, in Display>Custom fields, you can turn off its frontend display setting so that the field can't be used on the frontend.

The following user(s) said Thank You: khashiz

Please Log in or Create an account to join the conversation.

  • Posts: 197
  • Thank you received: 13
1 year 1 month ago #348968

that setting in plugin was great if it was configurable for each custom field individuali but i have 4 custom fields which i want only ony of them be non-editable

i ended up doing it with javascript in front-end

thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
1 year 1 month ago #348974

Hi,

In that case, turning off the "frontend" display setting of each of the custom fields would have been possible. Indeed, the setting in the plugin is global, but it's precisely because there is already a frontend setting in each custom field if you want some to be available and some not.

The following user(s) said Thank You: khashiz

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum