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 - 301 through 315 (of 3,130 total)
  • Author
    Search Results
  • #52172
    Shane
    Participant

    Sorry, I figured it out (brain not working first thing in the morning before coffee). For anyone else reading you can use the javascript setFieldValue() method to insert markdown formatted text into a markdown field:

    function Script1() {
    
    // 1. get markdown field id and store it in a variable
    var markdown_id = 'fld-386387870d374f9dbbd550b3393c2692';
    
    // 2. create the output text with some markdown formatting and store it in a var
    var theMessage = "lalalal **this is bold**";
    
    // 3. output to markdown field
    record.setFieldValue(markdown_id,theMessage);
    
    }
    
    Script1();
    • This reply was modified 1 year, 4 months ago by Shane.
    • This reply was modified 1 year, 4 months ago by Shane.
    • This reply was modified 1 year, 4 months ago by Shane.
    • This reply was modified 1 year, 4 months ago by Shane.
    Attachments:
    You must be logged in to view attached files.
    #52171
    Shane
    Participant

    Thanks for the info Daniel. How do you combine javascript with markdown? As far as I know they’re two separate fields.

    Thanks again.

    #52168
    Simon Spiers
    Participant

    Hi Brendan,

    I really like the new Tap Forms Pro — Thank You!

    I migrated from Tap Forms 5 and one of the scripts no longer works. It gets the values from a linked form and populates fields in the current form.

    How can I make it work again?

    Thanks in advance

    Attachments:
    You must be logged in to view attached files.
    #52161
    Shane
    Participant

    I guess worst case scenario is I can just pull the records and filter them via javascript.

    #52160
    John Martin
    Participant

    The error message continues after the update to Tap Forms Pro, so I will email you for the link to purchase a subscription from iOS.

    In addition to the things I mentioned previously, I’ve tried logging out and back in to the Mac App Store as well as trying the purchase while booted in Safe Mode, with neither having any impact. I note that my iCloud account and my media purchases (iTunes) account are different; perhaps that is causing the problem.

    Thanks for your initial response.

    #52155
    Daniel Leu
    Participant

    I have one DB/Form as well where I keep track on different cars. I use one field to identify the car and use separate saved searches to filter for each car. This makes it easy to update since there’s only one form.

    I’d recommend to combine your car forms. There was a thread about this recently, just ignore photos, unless you have some in your form as well: https://www.tapforms.com/forums/topic/combining-forms-with-photos/

    If you’re combining the forms, I would first create a column _Car_ in each form and fill it for all records. You can do this with a script or just as easy in multi-column list view. Enter the value for the first row and the drag the yellow dot down to the end. For the _Car_ field, I defined a Picklist. Now it’s very easy to select for which car I’d like to enter a value.

    Cheers, Daniel

    ---
    See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks

    #52152
    PierreBn
    Participant

    Hi, me again,
    I think this might be a bug?

    I’ve got 2 fields visible in “Single Column List View fields”: description & address (it’s a model train collection 😇)
    In the single column view , the image is always first, but description and address inconsistently appear first (in bold) or second. Screenshot showing the 2 cases + field order on the right).
    What’s weird, if I change Single Column List View fields from 2 to 1, and then back to 2: all is fixed…but situation returns if I change view or form.

    Thanks,
    Pierre

    Attachments:
    You must be logged in to view attached files.
    Kurtois
    Participant

    Minimizing Tapforms Client Data Storage Requirements/

    Above, I include a link to my discussion on this topic for Tap Forms v5. I am still troubled on how best to minimize the storage requirements for a Tap Forms Document, sadly.

    Note, I did opt for iCloud Sync with the Document I am working on for my project. I plan to utilize a variety of PDF, JPG, and PNG file types for a given field of type ‘Photos’.

    1.
    In order to get up and running quickly, I am likely going to use a ‘Photos’ field type in my Document. It sounds like I can relocate the Tap Forms Document file to an external drive saving space on my local system drive, however, will that not break the iCloud Sync?

    2.
    There was discussion in the post I link to above about placing “photo” files on a host like Amazon’s S3. Quite honestly, I have only dealt with linking to hosted files on FTP servers. I have no idea how to work with Amazon’s S3. (Could we get a tutorial on that or a link to a good one, please?)

    Anyway, I would prefer to move a solution where “photo” files are hosted on a low-cost file host. However, my concern is viewing the photos. If a URL is provided for a field in Tap Forms, I understand a globe is displayed where a user can click to display the image in a pop-up window. I noted a script referenced in another post/
    by @pasamiogmail-com that maybe provides a solution like I am after. However, I am not sure I grasp what this looks like when implemented.

    Harry
    Participant

    Thanks so much. Exactly what I was looking for. Now to translate all my algorithms using JavaScript functions.

    Daniel Leu
    Participant

    You have to use the Javascript equivalent. There’s a bunch of functions available: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date.

    dateadd() is not a Javascript function and can’t be used. If you continue to go through the thread you found, you’ll see how to add an hour to your current date/time. Here’s the link to the thread for everyone else following: https://www.tapforms.com/forums/topic/how-to-use-dateadd-in-a-script/#post-40449

    Cheers, Daniel

    ---
    See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks

    Harry
    Participant

    I have a form in Tap Forms Pro that calculates subscription renewal dates to keep track of all my subscriptions. It uses several calculation fields that use Date and Time functions to determine the renewal date. I would like to create a script to consolidate all the calculations into one script field.

    Using a post here from May 2, 2020, “how to use dateadd in a script”, I tried this as a test, but got an error that said Test: ReferenceError: Can’t find variable: dateadd, line:(null).

    function Test() {
    
        var start_date = record.getFieldValue('fld-037157d2f1fa4a75959f3a6c0128a8c1');
        var renew_date = dateadd(start_date,1,0,0,0,0,0,0);
        return renew_date;
    
    }
    
    Test();

    Is it possible to use the these functions from calculation fields such as TODAY, NOW, DATEADD, YEARS, MONTHS, and DAYS in a script?

    Thanks,
    Harry

    #52121

    In reply to: Trial?

    Kimberley Hoffman
    Participant

    So, I am confused. You know that I have been using Tap Forms ever since Tap Forms 3, I also have TF 5. Is the cost of €59 for IOS and Desktop the 50% price? I don’t see any discount. Will next year’s subscription be €118?
    Could you explain? Thanks.
    Kimberley

    Attachments:
    You must be logged in to view attached files.
    #52110
    Brendan
    Keymaster

    I’ve heard of a few people having this issue. But there are lots of subscriptions coming in still from all over the world, so it’s working for most people, but seems to be causing this for some people.

    I did submit an update to Apple a few days ago which got rejected, but I submitted another one to Apple just today, so hopefully that’ll get approved and the store can update properly.

    You can also email me and I’ll send you a link to be able to purchase it from the App Store directly from iOS as it seems it’s a Mac App Store issue.

    #52103
    John Martin
    Participant

    I am running into a problem trying to purchase a MacOS + iOS subscription to Tap Forms Pro. I’ve downloaded Tap Forms Pro on my Mac and click the button for a discount offer for owners of Tap Forms 5. The Mac App Store opens, I provide my account credentials, confirm the purchase, and then get the following error message: Purchase of this item is not currently available. This item is being modified. Please try again later.”

    I have been trying at different times over the past several days. I’ve closed and reopened Tap Forms Pro and have deleted and reinstalled Tap Forms Pro. I continue to get the same error message. I’ve also tried upgrading from the iOS version, but I don’t get the discount offer when I do that.

    Any idea what might be going on? Is this a Tap Forms Pro issue or something going on with the Mac App Store? If it matters, I’m in Canada and use the Canada App Store.

    Thanks.

    Martha Montgomery
    Participant

    I attached 3 screen prints from a summary form I had for A) Tap Forms 5 versus B) the conversion to Tap Forms Pro. I also attach C) which is the link to forms. 2 questions:

    1) I added additional records to the “races” form and they were not showing up in this summary so I did a Recalculation of all Forms & Scripts. After this, the states where no races have run defaulted to the total number of records instead of zero like in Tap Forms 5. I tried various conditional If statements, but can not seem to figure out the correct formula to make this work correctly in Tap Forms Pro. Appreciate help.

    2) In trying to fix the formula, I deleted the additional fields (that were added via the “select fields” icon at the right of the titles that was in Tap Forms 5. How do I do I add fields in Tap Forms Pro?

    Attachments:
    You must be logged in to view attached files.
Viewing 15 results - 301 through 315 (of 3,130 total)