› Forums › Dynamic Forms for SharePoint › Refer to a field in tab headings? › Reply To: Refer to a field in tab headings?
January 16, 2015 at 12:06
#6889
Keymaster
Hi,
This is no problem. Add this code to the header (see image attached):
PM Number: <span id="putPMNumberHere" />
Then use this code in the custom JS section in the Misc tab:
// For DispForm $("#putPMNumberHere").html(getFieldValue("YourFieldName",true)); // For EditForm $("#putPMNumberHere").html(getFieldValue("YourFieldName",false));
PS: “YourFieldName” is the FieldInternalName – change it for your actual field name.
Hope this helps
Alexander
-
This reply was modified 6 years, 1 month ago by
Alexander Bautz. Reason: Fixed error in code example