Product: iOS SDK
Product Version: 9.0.1
Please give a brief summary of your issue: I need to populate a combo (or maybe list?) box with options that are defined outside of the PDF.
Please describe your issue and provide steps to reproduce it:
Let’s say I have a list of users I received from my backend: Person 1, Person 2, and Person 3.
When I open the form via PTDOcuementController, I want to grab the “User” field on the form and set it’s options to be those user names.
I already know how to grab the field. I’ve been successful in pre-populating other fields with strings and dates. But I can’t figure out how to add options to that combo/list (I think it’s a combo). Our web team’s SDK simply has an “options” property that is an array that they can populate. I don’t see the same property on the iOS SDK for PTField. Do I have to cast it in some way? I did find a PTComboBoxWidget that has “options”, but not sure how to swizzle it to my needs. Am I just going down the wrong rabbit hole here?