Date Issue on Universal Layout

Viewing 10 reply threads
  • Author
    Posts
  • March 13, 2026 at 10:27 AM #53655

    Cliff Richardson
    Participant

    I have a form with a date filed (Read Date). For most records this field is blank. When I created a layout on my iPad (3 columns), it puts in today’s date in each record that had blank dates. I do not have “use today’s date” selected. So the iPad Layout will show today’s date when the date field should have been blank. When I switch to the default layout (Main Detail), it shows the date field as empty (which is correct). See attachments.

    Attachments:
    You must be logged in to view attached files.
    March 14, 2026 at 1:56 AM #53660

    Brendan
    Keymaster

    Hi Cliff,

    Ya, that’s something I need to work on. I need to build the same kind of date field entry as is on the Default Layout. Right now it’s just using the built-in data controls that Apple provides, so that’s why it’s putting in today’s date for empty date fields. I’ll work on that. It was on my to-do list.

    Thanks,

    Brendan

    March 14, 2026 at 1:57 AM #53661

    Brendan
    Keymaster

    Also glad to see you’re trying out Universal Layouts.

    March 15, 2026 at 2:49 PM #53671

    Cliff Richardson
    Participant

    It was on my to-do list.

    Thank you. Since I’m just testing universal layouts, I’ll not use the date field for now, except for those db’s where I always have the date field filled.

    Also glad to see you’re trying out Universal Layouts.

    I like this feature. Can’t wait to see what you can do with this.

    Taks care.

    March 15, 2026 at 3:07 PM #53672

    Daniel Leu
    Participant

    Hi Cliff,

    As a temporary workaround, you could use a calculation field that creates a date string that will display on your Universal Layout. This is just for displaying!

    Here’s the formula: IF ([Date] = 0; ""; DATE([Date]; "MMM dd, yyyy")). With [Date] being your date field. When your date field is empty (eg, set to 0), an empty string is returned. Otherwise, a date string is created with the given format.

    Cheers, Daniel

    ---
    See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks

    March 15, 2026 at 3:12 PM #53673

    Cliff Richardson
    Participant

    you could use a calculation field that creates a date string that will display on your Universal

    Thanks Daniel. I will try this and report back.

    March 15, 2026 at 4:07 PM #53679

    Cliff Richardson
    Participant

    I tried the formula. I created a DateCalc field as a formula field. I initially had “0” when the Date field was empty, but where the Date field had a date, the DateCalc field was empty. Then I tried this and every DateCalc field shows “Dec 31, 1969 at 6:00:00 PM”. Obviously I have something set wrong. Then second attachment show the settings for the DateCalc field. Can you identify anything wrong? I appreciate your help. — Cliff

    Attachments:
    You must be logged in to view attached files.
    March 15, 2026 at 4:44 PM #53682

    Brendan
    Keymaster

    Hi Cliff,

    When you click on a function on the right side of the Formula Editor screen, you’ll see it tells you what type of value is returned from that function. In your case, you’re telling Tap Forms the value should be a Date, so you have the Result Type set to Date. But the DATE() function actually returns Text. So you need to tell Tap Forms to return Text instead of Date.

    Thanks,

    Brendan

    March 15, 2026 at 4:45 PM #53683

    Brendan
    Keymaster

    Also, you should use IFEMPTY() or IFNOTEMPTY() to check for empty date values instead of IF DATE = 0.

    March 15, 2026 at 7:07 PM #53689

    Cliff Richardson
    Participant

    you should use IFEMPTY() or IFNOTEMPTY() to check for empty date values

    I reset the Result to Text and changed the formula to use IFEMPTY().

    Works great. Thank you and thanks Daniel for the suggestion and initial formula.

    March 15, 2026 at 10:19 PM #53691

    Daniel Leu
    Participant

    Sorry, I forgot to mention to set the return type to text. Great that you got it working!

    Cheers, Daniel

    ---
    See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks

    March 15, 2026 at 10:28 PM #53692

    Cliff Richardson
    Participant

    At first I had set it to number (I think that was the default). Then I set it to date. So I had 3 choices and I picked the 2 wrong ones. Oh well.

    Again, thanks for your help.

    March 16, 2026 at 12:43 AM #53693

    Brendan
    Keymaster

    Basically the function definition on the right (at the bottom) tells you what Result Type you should use.

Viewing 10 reply threads

You must be logged in to reply to this topic.