Dataset filter by logged in user not working

Hi,

I have a custom questionnaire page that has some fields linked to a dataset. The dataset on the page has been set to filter by Owner “is Logged in User”. The page has a “Submit” button configured.

My use case:
A member should only have one entry in the dataset. If the filter finds it then the page should display the data for that user. If the filter does not find it (i.e. there is no record found for the logged in user) then I want a page of blank values so that the user can enter them, click Submit and create a record.

Problem: the page does not work if the filter fails. It is not possible to enter any data into the fields and the Submit button is greyed out.

Is this correct behaviour when setting a dataset filter by Owner ? I expected a working page with blank values and an active Submit button.

If it is standard behaviour, could you please advise what I’m doing wrong to achieve my use case.

Many thanks in advance for your help

Hi,

My first try used data binding on the page.

I tried the same use case with some code (with a new member who has no record in the dataset) and sending messages to the console to see what happened:

Note: I left the data binding config assuming the code would override it.

The console output shows a filtered dataset message but I know there is no record for that user (I expected the catch block to work). Appreciate any pointers on what I’m doing wrong.