Page 1 of 1
Internal Name of Plain or Rich Text Field
Posted: 16 Mar 2017
by Mapleleaf
Hello,
do Plain or Rich Text Fields have internal names or do only sharepoint-columns have this name?
If I want to hide a rich-text field, how can I adress it in JS of the form?
$('.fd_field[fd_name="Internal Name"]') .hide() or .show();
works for sharepoint-fields. What would it be for text-fields?
Re: Internal Name of Plain or Rich Text Field
Posted: 17 Mar 2017
by Dmitry Kozlov
Text fields like any other SharePoint fields have internal names. You can find the internal name in field's properties.

- InternalName.png (4.28 KiB) Viewed 4034 times
Re: Internal Name of Plain or Rich Text Field
Posted: 17 Mar 2017
by Mapleleaf
Sorry, I didn`t explain well. It is no Sharepoint-Field, it`s spforms plain or rich-text.

- Textfield.jpg (52.35 KiB) Viewed 4033 times

- Textfield.jpg (52.35 KiB) Viewed 4033 times
Re: Internal Name of Plain or Rich Text Field
Posted: 20 Mar 2017
by Dmitry Kozlov
Forms Designer's controls do not have internal names. But if you put a Rich Text control into a table and assign a CSS-class, say 'rich-text', to a cell, you can handle it following way:
$('.rich-text').hide();
$('.rich-text').show();
Re: Internal Name of Plain or Rich Text Field
Posted: 28 Mar 2017
by Mapleleaf
It works in case of edit form. For display form it does not. Do I have to consider something else for display form?
Re: Internal Name of Plain or Rich Text Field
Posted: 29 Mar 2017
by Dmitry Kozlov
It should work in a display form as well. Make sure that you do not have other JS-errors in the browser console (F12).