I have a form in my app (Form1) that switches between Edit mode and New mode depending on if the selected item is blank or not. There's a Rich Text Editor in the form, and I want its default to show previously entered data if the form is in Edit mode, or the results of a Lookup if the form is in New mode.
The code I'm using in the default property of the Rich Text Editor is:
If(
Form1.Mode=FormMode.New, LookUp(SharePointList, ID=ThisItem.ID).Title,
Parent.Default
)
Title is what I want to show up in my rich text editor control when the form is in New mode. The code isn't giving me any errors, but it doesn't show anything in the control when the form mode is New. It does show previously entered data when the form mode is Edit.
If I replace LookUp(SharePointList, ID=ThisItem.ID).Title with a hard-coded value, the formula works as intended. I just can't get it to display the results of the Lookup.
Any suggestions would be greatly appreciated. Thanks!