In my solution for an iPad, have a layout based on a list view with a button to add new records. My script uses
New Window [ Style: Card; ...............]
Set Variable [$$preventClose; Value: 1 ]
Exit Script [ Text Result: "" ]
Had it using a Dialog window, then changed to the Card window. Works same. No window opens. It adds the record in the list view. Have an edit button that opens the same type window and it works as expected. Something in my script must not be right.