How to show all records in portal when date range fields are empty
I have a portal on a table A that shows records of table B within a date range. I do this by running a script that collects the "start" and "end" global dates, and performs the find on my B table and then shows the results on my filtered portal of my A table.
Is there a way for the portal to "show all" records when the global date fields are empty?
Is there a way to "auto-reset" the global date fields and find them empty every time I visit my table A layout? (right now, it keep the last made date range search)
I apologise if this is a question asked before but I cannot find the answer. If this is the case could someone share a link?
Thanks you in advance,