Hi @faridanabilah22 ,
You can use two things - User().FullName and Today() for the current date.
Firstly, to avoid delegation issues, set a Variable at App Onstart
Set(vUserName,User().FullName)
Note that dates are not delegable queries, so if you have a list over 2000 items, you may need a different solution, however using YourListName, YourDateField andYourFormNameas names (replace with yours) in this, when the user selects a new record you could do something like
If(
IsBlank(
Lookup(
YourListName,
'Created By'.DisplayName = vUserName &&
DateDiff(
Created,Today(),
Days
) = 0,
),
NewForm(YourFormName),
Notify("You cannot create another form", NotificationType.Error)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.