Reply To: Refer to a field in tab headings?

Forums Classic DFFS Refer to a field in tab headings? Reply To: Refer to a field in tab headings?

#6889
Alexander Bautz
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 9 years, 3 months ago by Alexander Bautz. Reason: Fixed error in code example