AppMachine Help Center

How can we help you?

Follow

"GET" your form data with the AppMachine API

This little tutorial will show you how to get your form data to show in your app.

This comes in handy when your manager want to see the form results that has been send in his app without consulting his mail.

Steps to take:

  1. Add a Form(beta) block.
  2. Add your controls to the screen.
  3. The locationpicker we have to connect manually.
  4. Go to the Developer Tab
  • Services
    • Data
      • Input parameters
        • Body
  1. Enter the name of your locationPicker control (default is the name is Locationpicker1)

 

You will see 3 fields already filled in, we just need to enter the locationpicker and the default value is the {gps:latitude}, {gps:longitude}

 

This will use your phone’s GPS as the input for the control.

 

You can also decide if you want some controls to be “required” before sending the form.

If you check the box, the form will NOT send if that field is not filled in and the user will get an warning. ( red border around the control ).

 

  1. Now we have connected our controls from our form.
  2. Fill in your email address in the Advanced tab of your Form block.

  1. Alright we are done with setting up the form. Next up is sending some data. So just fill in the Form and press submit.

 

9.Check if you have some data in the DATA tab of your Form.

 

Now we want to show that data in another block in our app.

 

Steps to take:

  1. Add a web service block
  2. Select AppMachine API

    

  1. Select “Returns data from data store”

    Fill in the name of your form block (In our case this is Form (beta))

Click Next and select the node “root”.

 

Click Next and name your block.

 

Our app structure will look like this and we are done. This is how you return the data from your form block. You can place a Lock Block above the Get Form Data block to prevent unwanted access of course.



Was this article helpful?
3 out of 3 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Joost de Graaf

    Cool! Try in the case of a blank screen when retrieving the information the ID instead of the name.

    Edited by Joost de Graaf
  • Avatar
    Armando

    I can't see the locationPicker control in my editor.

    Edited by Armando
  • Avatar
    Anthony TopTechPH

    After this step - Fill in the name of your form block (In our case this is Form (beta))
    I entered my Form block name...clicked Next... it shows blank. Tried entering the data provider name, from the Developer Tab - "Dataprovider11"...still came out blank