Mar 10 2024 02:22 PM - edited Mar 10 2024 02:46 PM
I have a Sharepoint list for our contacts. I am formatting the form and want to change the header.
I used the example that adds
"children": [
{
"elmType": "div",
"txtContent": "= 'Détails de ' + [$Title]"
The Title column of the list is the last name. It just does look right.
I would like to change the Title field to the full name of the contact, which is a calculated field adding first and last names. This field is called. [$Nom complet]. If I just change the field name, it shows the whole text that is between the quotes.
I found in the advanced code for the list itself that the name of the column shows up like this :
Mar 10 2024 11:06 PM
Solution
Last time I checked, using calculated columns in the form header JSON formatting was not supported. Check details: How to get value of Calculated field in Header using JSON?
So, you will have to recreate the logic you used for your calculated column in the JSON formatting using JSON operators/functions.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Mar 11 2024 07:02 AM
Mar 10 2024 11:06 PM
Solution
Last time I checked, using calculated columns in the form header JSON formatting was not supported. Check details: How to get value of Calculated field in Header using JSON?
So, you will have to recreate the logic you used for your calculated column in the JSON formatting using JSON operators/functions.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.