Script for New Record with Current Date

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
  • January 1, 2019 at 3:07 AM #33061

    Aeron Manabo
    Participant

    Hi,

    I am currently interested with the scripting capability of TapForms to apply on my workflow. I would like to ask for help or maybe scripting samples for this conditions:

    1. To Create a New Record.
    2. To Put the Current Date in a Date Field.

    (Much better if I am able to have a prompt to input details to specific fields [e.g. date, week number, etc.])

    Thank you so much for your help on my learning journey. :)

    January 1, 2019 at 8:48 AM #33071

    Ron
    Participant

    Check out the Scripts page of the v5.3 manual. It gives a sample of the Prompter() function which seems to be what you are looking for.

    Ron

    January 1, 2019 at 11:18 PM #33075

    Brendan
    Keymaster

    Hi Aeron,

    Also along with Ron’s suggestion, there is a var newRecord = form.addNewRecord() function you can call to create a new record. Then you can use the Prompter() class to ask the user to input data that you can then fill in your newRecord variable with.

    Thanks!

    Brendan

    February 15, 2019 at 9:01 AM #33755

    Aeron Manabo
    Participant

    Thanks a lot. I kinda figured out already the Add New Record. Although I’m still confused with the prompter. I was able to execute the prompts, but the problem is that I could not fill the input datas to specific fields.

    February 15, 2019 at 10:02 AM #33756

    Aeron Manabo
    Participant

    Problems solved. Thanks a lot.

Viewing 4 reply threads

You must be logged in to reply to this topic.