Populate field with value from parent form

Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch Forums Using Tap Forms 5 Populate field with value from parent form

Viewing 2 reply threads
  • Author
    Posts
  • October 29, 2019 at 11:29 AM #37537

    Federico Santello
    Participant

    Hello everyone.
    I have a question.
    I have a form for customer, each customer can have multiple appliance and i Have create a child form where i put the appliance.
    In the child form i want that some field as name of the customer and address will be filled automatically from the customer form.
    How can i do?
    I need Java script?
    Someone can help me with the script?

    Thank’s
    Federico

    October 29, 2019 at 11:34 AM #37539

    Brendan
    Keymaster

    Hi Federico,

    If you have a one-to-many relationship from Customer to Appliance then yes you can do this easily.

    Make sure you set the Show Inverse Relationship option on your Link to Form field, then Tap Forms will show the parent relationship on the Appliance form.

    However, once you’ve done that, you can pick out values from specific parent fields just by adding a Calculation field that references a field from the parent. Just make sure you set the Return Type to be the correct type. If it’s the name of the contact, then it’s probably Text.

    You can also use a Script field for the same purpose.

    Thanks,

    Brendan

    October 29, 2019 at 12:29 PM #37542

    Federico Santello
    Participant

    Thanks!!!
    As always.
    Simpler than i thought.

    Federico.

Viewing 2 reply threads

You must be logged in to reply to this topic.