Internal Name of Plain or Rich Text Field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

16 Mar 2017

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?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

17 Mar 2017

Text fields like any other SharePoint fields have internal names. You can find the internal name in field's properties.
InternalName.png
InternalName.png (4.28 KiB) Viewed 4029 times

Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

17 Mar 2017

Sorry, I didn`t explain well. It is no Sharepoint-Field, it`s spforms plain or rich-text.

Textfield.jpg
Textfield.jpg (52.35 KiB) Viewed 4028 times
Textfield.jpg
Textfield.jpg (52.35 KiB) Viewed 4028 times

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

20 Mar 2017

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();

Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

28 Mar 2017

It works in case of edit form. For display form it does not. Do I have to consider something else for display form?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 Mar 2017

It should work in a display form as well. Make sure that you do not have other JS-errors in the browser console (F12).

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests