Hi need your advice.
My DataCard in a NewForm Mode has this default function:
If(Day (Today()) >=20 && Day (Today ()) <=31, Text (Today(),"[$-en-US]mmmm yyyy"), Text (DateAdd(Today(),-1,Months) "[$-en-US]mmmm yyyy"))
This is to reflect the previous Month but if entered within 20th to 31st of the Month it will reflect month today. And this works well when adding new entries.
But I don't want this as default when the form is in View or Edit Mode. I want to reflect the Parent.Default.
I tried the syntax below but has error:
If(
Form3.DisplayMode = DisplayMode.New,
If(
Day(Today()) >= 20 && Day(Today()) <=31, Text(Today(),"[$-en-US]mmmm yyyy"),
Text(DateAdd(Today(), -1, Months),
"[$-en-US]mmmm yyyy")),
Parent.Default)
)
Thank you!
@NandiniBhagya20 @AhmedSalih @Drrickryp