Skip to main content
Participant
November 9, 2018
Answered

How do I make my form calculation iPad-compatible?

  • November 9, 2018
  • 1 reply
  • 1062 views

The form contains values (0 or -1) for each yes/no response and give a total starting at 20 (for all zeros and 0 for all -1).  It works well on Mac and the yes/no response are 'checkable' on iPad but the score total doesn't update on iPad.  The form is at: https://adobe.ly/2QsJjMQ

Thanks in advance for any help!

This topic has been closed for replies.
Correct answer try67

I'm new to creating calculations but I think/thought that's exactly what I've already done.


Not quite. Your export values are "YES-1" and "NO", which are not numbers. I'm surprised it's working at all, to be honest. I guess the built-in script strips all non-numeric text from the value and then attempts to convert it to a number. It's very likely the mobile version of the application doesn't do all of that, which is why it fails.

You can apply the export value "1" to all the fields and then sum them up in a (hidden) text field and see if that works.

Then have the total field equal 20 minus the value of that field. If that doesn't work it's not likely to work at all.

1 reply

try67
Community Expert
Community Expert
November 9, 2018

Try the PDF Expert app by Readdle. It offers the best support for scripts

on iOS devices, currently.

TrudyBAuthor
Participant
November 9, 2018

Thanks.  It works in that app.  But that app doesn't seem to be able to create a version that will open for anyone on an iPad (e.g., using Reader) and have the calculation still work.  I can't ask people to buy an app just to make this form work.

try67
Community Expert
Community Expert
November 9, 2018

Then you need to simplify the way you're calculating the total score. I think the biggest issue is your export values. Maybe try using "-1" as the export value and then sum them all up, plus 20... That has a better chance of working, I think.