Tap Forms Pro on iPad Crashes When Running Script

Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch Forums Using Tap Forms Pro Tap Forms Pro on iPad Crashes When Running Script

Viewing 1 reply thread
  • Author
    Posts
  • May 9, 2025 at 10:27 AM #52178

    Harry
    Participant

    I believe there is a bug in Tap Forms Pro on iPad (Mac is fine) when you run a script from the script editing screen that returns a date. This causes Tap Form Pro to crash hard back to the Home Screen. It does, however, return the correct date to the form itself. But you can’t see the Results or Console Log so you can’t debug a script on iPad. Here’s how I came to this conclusion:

    On my Mac, I am working on a script field in an existing form to consolidate a bunch of calculation fields with complex date calculations. The script returns a date, so the Result Type is set to Date. The script runs fine on my Mac. After syncing, when I opened the script on my iPad and ran it from the script editing screen, Tap Forms Pro crashed hard back to the Home Screen. It did return the correct date to the form itself.

    To see if it was a problem with my script or a problem on my iPad, on Tap Forms Pro on my Mac, I created a new form in an existing document. The form has two fields: a date field called Date and a script field called Script. The script returns a date, so I set the Result Type to Date. Here’s the script:

    function Script() {
    
        var date = record.getFieldValue('fld-30474b3e3b4740109e54e1912e6e59f2');
        return date;
    
    }
    
    Script();

    It runs fine on my Mac. On my iPad, the new form synced from my Mac. When I opened the script on my iPad and ran it from the script editing screen, it crashed hard, just like the script I’m working on.

    To see if the sync from my Mac to iPad was the problem, I created a new form on my iPad with the same two fields and script as above. It also crashed hard when ran from the script editing screen.

    To see if it was a problem with using a date, in the same form I created a text field called Text and a new script field called Textscript. Here’s the script:

    function Textscript() {
    
    	var text = record.getFieldValue('fld-51dd29f120b44101b99cf90f6ab01860');
        return text;
    
    }
    
    Textscript();

    This script runs fine on my iPad from the script editing screen. So my conclusion is that there is a bug in Tap Forms Pro on the iPad with script fields that return a date when run from the script editing screen. However, the correct value is returned to the form.

    • This topic was modified 3 weeks, 1 day ago by Harry.
    May 11, 2025 at 4:38 PM #52204

    Brendan
    Keymaster

    Thanks for the bug report. I’ve just fixed this crash.

Viewing 1 reply thread

You must be logged in to reply to this topic.