Mar 19 2021 12:57 AM
Hi there,
I'm having some trouble in conditionally displaying a text depending on if it's a new form or edit form.
The following piece of JSON (when on New form type)
* JSON for Header *
{
"elmType": "div",
"txtContent": "=if([$Title] == '', 'Create new item' ,[$Title])"
}
returns the message:
"Failure: Title was not found on the data object"
Is there a way to have this sort of condition? Or is there a better way of doing it?
I know with Power Apps will achieve that but I can't use Power Apps.
Thanks!
Mar 19 2021 02:18 AM
SolutionOk, I found the issue.
I have
{ "debugMode": true }
set.
Oh dear me.
By removing it, fix the problem.
Jan 20 2022 10:39 PM
@NarleyBrittes Hi there. I am having the same issue but not sure what you did exactly to resolve it. So can you remember how to managed to get [$Title] to be recognised as a data object? Please share and I would be so grateful :)
Jan 20 2022 11:09 PM - edited Jan 20 2022 11:09 PM
Hi @MbethC. In my case I had { "debugMode": true } in my JSON enabled. I just removed that bit and it was all good after that.