Tap Forms app icon half
Tap Forms Forum text image
Blue gradient background

Exchange tips and ideas with the Tap Forms community

Search Results for 'script'

Viewing 15 results - 2,461 through 2,475 (of 2,864 total)
  • Author
    Search Results
  • #34089
    Brendan
    Keymaster

    Hi Keith,

    Not with a Calculation field, but it can be done using a Script field because Script fields can write their results to other fields. So you could write a script to gather your values from your fields in the record, then perform the same kind of calculation you would have done in the Calculation field, and then just write the result into your Rating field.

    Thanks!

    Brendan

    #34072
    Brendan
    Keymaster

    Hi Kimberly,

    You can also do something like this with a Calculation field or a Script field. It’s up to you.

    But in a Calculation field, the formula would simply be:

    "#" + Keyword

    Set the formula to return Text.

    Then in your Calculation field you’ll get #Keyword as the result, where the value of Keyword is whatever is in the Keyword field.

    Give that a try and if you’d prefer a script, let me know.

    #34069
    Kimberley Hoffman
    Participant

    Hi Brendan and the rest of the community,

    Could someone suggest a simple script for creating a hashtag out of a blog keyword?

    I have a file that is connected to my social media file planner. The purpose of the script is to automatically write a hashtag from a keyword. Both will appear in the editorial theme file which I will then copy and paste into wherever they belong. The keyword would be copied into Yoast for my WordPress blog , the hashtag would be copied into Instagram,Twitter or Facebook.

    i.e. Keyword = Mannheim; The result of the script should be #Mannheim

    I realize I could just use copy and paste from the keyword line in the file into the hashtag line. But it would be timesaving to automate that. Unfortunately I don’t know how to write scripts.

    Would somebody help me, please? Thanks.
    Kimberley

    #34047
    Brendan
    Keymaster

    Hi Joe,

    You could do that with the use of a hidden Script field that references your Item # field. You would have to load in the records of the Products form, loop through them and look for the record that contains the Item # specified. Then copy the values from the found record into the child record you added. I should probably add a proper search API to the Script feature so you wouldn’t have to write the code to loop through the records yourself.

    Other than that you’d have to just click on the checkmark button to display the popover with the list of child records, then type in your Item # and select the matching one from the list.

    Thanks,

    Brendan

    #34034
    joe omalley
    Participant

    Brendan…Thanks for the free invoice form! Question…Is it currently within the realm of Tap Forms to be able to automatically populate the description and the price of a product or service in a subform (table) when entering in the Item # column via dropdown from another form. Just wondering. This would be golden!

    #34027
    Paul
    Participant

    My apologies if the info I seek is already posted here, I have searched, but cannot find reference to what I’m looking for. I am very new to TapForms, sorry for the Noob inquiry.

    I work for a Utility company and we have a project coming up where we will need to do site surveys of over 130 sites throughout the region.

    Data that we need to capture for each site (utilizing TapForms) revolves around the door lock hardware. We will need to collect about 20 pieces of data per door such as: Lock hardware, condition, handing, material, etc. We will also want to have room for at least 3 photos per door and also room for comments. The sites range in size from 2 doors to 30 doors. The data (and photos) will then get imported into a database for future reference. It seems that the linking function will fit the bill, I’m just not familiar enough with its use to make it work properly.

    Is there a way that I can start a record called site, then add doors underneath that record? OR would it be best to have each door as a unique record? I’m trying to get around entering site name, address etc. multiple times per door for larger sites and streamline this process as much as possible.

    I hope this description makes sense. Thanks for your help, much appreciated.

    Paul

    #33928
    Kirk Williams
    Participant

    Thanks Brendan! Sorry, I’m very new to TF and am likely over-complicating this description. To hopefully clarify, what’s not updating is the picklist on the child form when additions are made to its linked parent form. So the parent has records “A”, “B” & “C” – all of which are available in the child’s linked picklist. When entering a record in the child form, I realize I need a “D” parent, so I go to the parent form (either using a new window or by switching to it) and add it. When I return to the child, “D” does not appear unless the entire TF file is closed & re-opened.

    #33883
    Brendan
    Keymaster

    Hi John,

    Tap Forms is doing the TOTAL() because you have a Link to Form field there and it doesn’t know which record to use, so the only choice is an aggregate calculation for the field from all the linked records.

    You’ll have to add your Calculation field to the Filament form instead. Make sure you have the “Show Inverse Relationship” option enabled. Now, if the relationship between your forms is a one-to-many then on your Filament form you can access directly the parent field’s Filament Used (mm) field to do your calculation. But if it’s a many-to-many or a Join Link Type, then that won’t work.

    With a Form Script or a Script Field you could write some JavaScript to pick out an individual record from the Cost per mm Link to Form field and then use that value in your calculation.

    Thanks,

    Brendan

    #33878
    Brendan
    Keymaster

    Hi Stephen,

    Excellent! I’m glad that has helped a bit.

    Tap Forms will write a bunch of the Script code for you by using the Snippets provided and just by double-clicking on the fields in the Fields list on the Script Editor. So you can do some basic stuff quite easily there.

    I know, easier said than done :) Hopefully it won’t be too difficult for you to learn a bit of JavaScript.

    Thanks,

    Brendan

    #33876
    Stephen Froggatt
    Participant

    Thank you, Brendan, very much indeed.
    Your reply is crystal clear and helps me understand better how the Linked Forms work.
    I have moved some of the fields around a bit on my forms so that they are now referenced in the correct direction. Everything now works as intended!
    You have also inspired me to learn some JavaScript programming in order to make use of “calculation fields on steroids!”
    Many thanks again for your full, prompt and helpful response.
    Every blessing,
    Stephen

    #33870
    Brendan
    Keymaster

    You can get what you want from the other direction, but not from the parent form. That is, on your Baby form you could add a Calculation field that references the Date Visited field from your Visit form.

    If you think about it, you have multiple visits, each with its own Date of Birth and Baptism Date. So which one do you want?

    The Calculation field is not able to reference an individual Link to Form field’s record.

    The Script field can though. To do that you would have to fetch the Link to Form field’s records, then pick out the first record and then do your calculation.

    #33859
    Richard Hassell
    Participant

    I need to make a field called full name that incorporates a first name field and last name field with a space between the names.. I use the script as below however as soon as I put a space between the ‘ and ‘ the program freezes and I have to force quit.

    function Full_Name() {
    var first_name = record.getFieldValue(‘fld-ee04b40fb2b64df5b26e7bf330e46657’);
    var last_name = record.getFieldValue(‘fld-f6c97003b1124b9ba8bd677d2142213f’);
    return first_name+”+last_name;
    }
    Full_Name();

    any advise?

    I am running : Version 5.3.5 (Build 943)
    on OSX 10.14.3 with latest updates as of today.

    Thanks Guys!

    #33852

    In reply to: label fix field length

    Brendan
    Keymaster

    Hi David,

    There are a couple of ways you can deal with variable width values for mailing labels.

    One option is to add a single static text object to your custom layout for your label and put the field names into it surrounded by square brackets.

    For example:

    [First Name] [Last Name]
    [Street Address]
    [City], [Province]  [Postal Code]
    [Country]

    When setting up your label this way, the width of each value doesn’t matter as it will accommodate the space required for the variable width values.

    You do have to make the box wide enough to accommodate the largest width label though.

    The other way to do it is to create a Calculation or Script field which concatenates the field values and then just place that one field on your label.

    See the Text Concatenation sub-topic in the Calculations topic in the online user manual:

    https://www.tapforms.com/help-mac/5.3/en/topic/calculation

    Thanks!

    Brendan

    #33847
    Kirk Williams
    Participant

    Thanks Brendan! I am currently using the shortcuts; with moving data into this particular form from other sources I’m using copy/paste a lot and thought it would just be a bit more ergonomic to have a quick-click shortcut to navigate records. I did add a script button to add a new record – that works well.

    Obviously no major big deal. I was just wondering if there was an easy way to script the prev/next functions for this particular case.

    Thanks as always!

    K

    #33844
    joe omalley
    Participant

    Hi B. Any chance of getting a video tutorial on how how to use a scripts. I’m a visual learning person. I’ll hang up and listen for your answer. Thanks

Viewing 15 results - 2,461 through 2,475 (of 2,864 total)