The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use api to query by field
I'm storing a randomly generated hash code in formtools when the record is inserted. The person that submits the form gets this unique value that can then be used to get the record from form tools.

The user queries for their record using a key, to avoid viewing other records:

I have some custom php code that queries mysql directly, but I'd like to see if the api can do this using something like the show_submissions api function, or if there are some ideas out there.

Thanks for any ideas you might have.

Hey BigHoppy,

I'm afraid the API doesn't offer this functionality yet, but it's definitely near the top of the list (a couple of other people have recently requested the same feature).

Just as you suggested, I'm going to be updating the ft_api_show_submissions function to allow custom searches.

However, did you want to get the row as a row of values, or to actually display the content, like ft_api_show_submission and ft_api_show_submissions?

- Ben

Forum Jump:

Users browsing this thread: 1 Guest(s)