• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

NAB: Grid cells showing as links on iPad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NAB: Grid cells showing as links on iPad

    Hi, we have a problem with NAB apps running on an iPad when we have a Row Click behaviour on a grid. After clicking on a row to launch a pop-up widget and then closing the pop-up, the iPad will have changed some of the cells to be underlined and in blue.

    If the user then clicks on one of those cells the app will crash ...

    2019-09-30_10-49-31.png

  • #2
    Hi David,

    To stop iOS from attempting to mark items as possible phone numbers you can fool the OS by adding a zero-width joiner inside the value. Below is an example of custom formatting on a grid column doing just that.

    Code:
    v = v + '';
    
    if (!Valence.isEmpty(v)) {
        // insert zero-width joiner ‍ to stop iOS from performing
        // telephone detection
        //
        return v.substring(0, 1) + '‍' + v.substring(1);
    }
    
    return v;

    Comment


    • #3
      Thanks Johnny, that is working well !

      Comment


      • #4
        Hi Johnny,

        This code has stopped working correctly on the excel download for build 5.2.20200630.

        Before the column was downloading correctly as
        0166013
        now it looks as
        0‍166013
        It still works correctly on iPad. Please fix.

        Comment


        • #5
          Hi Johnny,

          We discovered that removing the javascript code fixes the excel download, which was expected, but also the app looks correctly on the iPads, that is, the numbers do not appear as links any more, so this javascript code is no longer needed.

          Regards

          Comment

          Working...
          X