SOLVED

SharePoint form footer visible if form is new

%3CLINGO-SUB%20id%3D%22lingo-sub-3246123%22%20slang%3D%22en-US%22%3ESharePoint%20form%20footer%20visible%20if%20form%20is%20new%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3246123%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20SP%20list%20form%20with%20a%20button%20in%20the%20footer%20that%20launches%20a%20PowerApp.%20What%20I%20need%20is%20to%20hide%20this%20button%20if%20the%20form%20is%20new.%20Is%20there%20something%20in%20Json%20that%20can%20see%20if%20the%20form%20is%20new%3F%20I%20thought%20I%20could%20do%20it%20based%20on%20the%20ID%20like%20this%26nbsp%3B%22visibility%22%3A%20%22%3Dif(%5B%24ID%5D%3D%3D'')%22%20thinking%20there%20would%20not%20be%20an%20ID%20until%20the%20item%20is%20saved%20but%20the%20ID%20column%20is%20hidden%20so%20I%20don't%20think%20that%20will%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20is%20appreciated.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I have a SP list form with a button in the footer that launches a PowerApp. What I need is to hide this button if the form is new. Is there something in Json that can see if the form is new? I thought I could do it based on the ID like this "visibility": "=if([$ID]=='')" thinking there would not be an ID until the item is saved but the ID column is hidden so I don't think that will work.

 

Any help is appreciated.

Thanks

2 Replies
best response confirmed by SG523 (Contributor)
Solution

@SG523 This is a know limitation of list form JSON formatting in SharePoint.

 

Using Created, ID, or Author in JSON code will not work as those fields are not shown on list forms. You can refer only those columns which are shown on list forms.

 

Similar threadHow to detect Edit vs New when styling custom list forms with JSON? 


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.

Thank you for the solution. I will try this tomorrow and see if it .