Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Question about using Javascript to hide a lookup field. #46

Closed omarrana closed 6 years ago

omarrana commented 6 years ago

i want to hide a lookup field or make it read only. if i hide it through crm then data does not get submit nether for read only.

How can i make it read only using adx portal? Please help . Sorry for asking here the adx forum are somehow not working

amervitz commented 6 years ago

Set the field as read-only on the CRM form: image

Be sure to also publish the form and reset the site cache afterwards.

omarrana commented 6 years ago

hello thanks for this solution but i am looking to hide the field using javascript or show the field based on option set. Any idea

amervitz commented 6 years ago

Client-side JavaScript is probably your only option for this, standard web development techniques to inspect DOM values and manipulate visibility using jQuery for example should suffice. This will require front-end web development skills to perform.

omarrana commented 6 years ago

Thanks solved. ("#new_mittelverwendung").hide(); $("#new_mittelverwendung_label").hide();