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 - 76 through 90 (of 3,016 total)
  • Author
    Search Results
  • #53066
    Mark Moran
    Participant

    Hi!

    Refining this again. It seems to run repeatedly as I scroll through the fields in a record. I added this to prevent this:

    // — Only proceed if variety field is empty —
    if (variety) {
    return; // Exit if variety is already set
    }

    Once it’s filled in it stops prompting for the variety. But….. I’d like the script to give me a prompt not if the field is empty but if that’s the active field. Is there any API call like:

    record.getActiveRecord();

    ?????

    Mark

    #53065
    Shane
    Participant

    That’s a difficult thing to easily explain in layperson’s terms because it requires explaining a programming language. I”m new to scripting in TapForms, but have some experience with Javascript via web programming.

    You need to create a script field which gets run when the form is viewed (I believe). In the script, it would have to do the following:

    function uncheckRecords() {
    
    // get the ID of the form you want to get the records from
    var myForm = document.getFormNamed('CWL WARS');
    
    // get the ID of the checkbox field
    var checkMarkField = 'fld-11d1cd0f0dc64bc389c3298076f0b9c8';
    
    // get the records from that form
    var records = myForm.getRecords();
    
    // iterate through all records and set the charkMarkField to unchecked
    for (var index = 0, count = records.length; index < count; index++){
         // pull single record from array:
         var theRecord = records[index];
         // change field value for that record
         theRecord.setFieldValue(checkMarkField, 0, false);
         document.saveAllChanges();
    }
    
    }
    
    uncheckRecords();

    So this is how I see the code going in theory, but I haven’t tested it. I’m assuming that a check mark field would result in 0 (unchecked) and 1 (checked) just like a form would in Javascript but haven’t verified it in Tapforms. There are some other changes I’d make to this code to make it more efficient (such as an if then conditional to only change the records that are already checked) but for simplicity purposes I kept it this way.

    Good luck.

    #53064
    David White
    Participant

    I play a mobile game called Clash of Clash on my iPhone 13. I use Tap Forms Pro on my iPhone also. I made a document named: My Games, and a form inside that named: CWL WARs, and inside that I made records that use 7 Check Mark Fields… Names: Fought Day 1, Fought Day 2, Fought Day 3, Fought Day 4, Fought Day 5, Fought Day 6, Fought Day 7. My Question is this: How can I make a Script on my iPhone 13 that will reset or clear all those Check Mark fields back to no checked boxes again. I am new at making scripts … so can you put it in Layman Terms as much as possible. I did read the beginner stuff tap forms puts out. So I got the very basic. My reason for wanting to do this is as follows. I can have 40 players I’m tracking during CWL WARs at any given time. Each record has 7 Check Mark boxes that can be clicked on. That’s 40 X 7 = 280 Check Mark Boxes I have to clear at the end of CWL WARs. It would be so much easier if I could just click a script and they were all reset / cleared at once.

    Hope to hear back from someone that can help me. First time using this Forum. Thanks. God Bless.

    #53058
    Brendan
    Keymaster

    Hi Aaron,

    There won’t be an Apple Silicon version of Tap Forms 5 because in the two years that I spent working on Tap Forms Pro, I removed some third party libraries that were Intel based in order to be able to make Tap Forms Pro Apple Silicon native.

    Tap Forms Pro is the future of Tap Forms, but I have updated Tap Forms 5 just recently to make it continue to function properly on macOS Tahoe where there were a couple issues. I won’t be able to do that indefinitely though as in a couple of years Apple will no longer support Rosetta on Apple Silicon Macs. Tap Forms 5 requires an Intel Mac or Rosetta to run.

    As far as the subscription model is concerned, I have responded to this question a couple times already in this forum.

    Thanks,

    Brendan

    #53057
    Aaron Rolls
    Participant

    I asked years ago if we could get a native version of Tap Forms 5 for Apple Silicon. I was told that yes it would happen, the dev was just waiting as they did not yet own a Apple Silicon device.

    What we ending up receiving was a subscription based version of tap forms which I have no interest in. I’d be happy to pay for an upgrade though.

    Could we get a native version of Tap Forms 5?

    Either that or could we have a change to the tap forms pricing model from what it is now to a update subscription. What ever version you have you keep but you pay for a year of updates?

    #53053
    Brendan
    Keymaster

    I’m glad you found a solution using scripts.

    #53043
    Harry
    Participant

    Since a calculation field didn’t work, I used a script field instead and that worked.

    • This reply was modified 5 months, 1 week ago by Harry.
    • This reply was modified 5 months, 1 week ago by Harry.
    #53023

    In reply to: Pricing Model

    Brendan
    Keymaster

    Hi Steve,

    Thank you so much for your very kind words and feedback.

    There are certainly apps that I subscribe to myself that don’t provide their own back-end services. Such as Sketch, Tower Git Client, and Sleep Cycle to name just a few. I pay the subscription fees because they continue to improve and support their apps and I benefit from that. And to help support the continued development of their apps.

    What if I said “here’s an app for a one-time fee, but you can never ask me a question about it, I won’t provide a support forum, and I’ll never release new features, bug fixes, or improvements”. I’m sure not many people would like that. I wouldn’t like that.

    Even though it doesn’t seem like it for Tap Forms, there are ongoing costs for me to continue developing, supporting, and marketing it (and hosting my domains, email, and website).

    In my entire history of 17 years of Tap Forms development, I had only ever had one upgrade charge when I released Tap Forms 5. And customers were entitled to a 50% discount, as they are on the first year of Tap Forms Pro. That was pretty good value in my opinion.

    Also I haven’t removed Tap Forms 5 from the App Store, so you can certainly get that version for a one-time fee and I am happy to support you for as long as you own it.

    I realize subscriptions aren’t for everyone and you do have options with Tap Forms 5, or if you value my continued development of Tap Forms, then you could subscribe to Pro.

    I want to continue developing Tap Forms for as long as customers keep enjoying using it, and subscriptions allow me to continue to do that.

    Thanks,

    Brendan

    #53022

    In reply to: Newbie Questions

    Brendan
    Keymaster

    Oh, as for ChatGPT helping you to write scripts, I think some customers have had some success with it. It can hallucinate though. What are you attempting to accomplish with your script?

    #53015
    Glen Forister
    Participant

    I have a field (Date Type) = “Date Collected” containg a collection date (mo/day/yr. = 07-29-10
    .
    I want another field to take that date and supply the “Day of Year”.

    I’ve looked at the functions, etc., and can’t find a way to do this. The discussion about date indicate that the way it is created is not accurate and therefore they don’t give a solution. However, I don’t care if the result is not exactly accurate, but I need it to be simple and accurate to within a few days.
    Can this be done with a calculated field or does it have to be a script?
    If it has to be a script, can you please supply me with when that will work since I’m not able to do that.

    I want to then be able to sort all my data by the day of year so that I can see which insects are collected during whatever period in year.
    Thank you

    #53011

    In reply to: Pricing Model

    timzu
    Participant

    I don’t mind a subscription model that is reasonably priced if I know what features are being planned in the future. Right now there is no road map and Tap Forms Pro has been out for quite a few months now.
    I am definitely not upgrading until iOS layouts are added. I was waiting for those in Tap Forms 5. I know Brenden said he is working on them.

    #53008
    Shane
    Participant

    Thanks Branden, I am using the latest TFP update.

    Of note, in TF5 you cannot link the form to itself properly unless you use the JOIN relationship. TF5 will display its parent as a child if you use ONE TO MANY. JOIN works, but under a JOIN you cannot use a calculation field to pull record data from the parent record in order to cascade data along the children.

    TFPro can use ONE TO MANY and it works properly, but the calculation fields and scripts seem to work intermittently. I’m still trying to figure it out. It could be related to when scripts and calculation fields are executed. I’m assuming they’re executed when the record is viewed? If so then it can be problematic when viewing/ editing child records that depend on data properly being calculated via its parent.

    Another intermittent and BIG PROBLEM with TFPro is when you click a child record in a link to field object, it goes to the child record, but doesn’t show any of the fields (it’s blank) as if there are no fields in the form. You have to add a second child record then click back to the original child for it to work properly. Weird. When I have time I’ll send you a video of it.

    Related to forms linking to themselves, is there a way to use javascript to pull field data from a parent record? I have only been able to do this with a calculation field and have only seen child records in the javascript API. Javascript seems to only grab data from the field of the current record. So I have been trying to use a calculation field to pull the parent field data, and a script to manipulate it but right now.

    • This reply was modified 5 months, 2 weeks ago by Shane.
    • This reply was modified 5 months, 2 weeks ago by Shane.
    #53007

    Topic: Newbie Questions

    in forum Script Talk
    j albin
    Participant

    Newbie questions:
    Does the online pro version of the documentation apply?
    I exported a csv file of a table on the iPhone but can’t find where Tapforms puts them?
    Has anyone been successful in using ChatGPT to write TapForms scripts?

    Thanks much
    JASailor

    #53006
    Steve Cichosz
    Participant

    I am a bit confused by the pricing model for Tap Forms Pro. As I see pricing models, one time download apps like Tap Forms that are stand-alone programs untethered from third party service support would fall under a one-time purchase model. An app that requires ongoing back end service like iCloud, or regular data refresh services like, PictureThis or AccuWeather justify monthly or annual subscription. What are the daily support services requiring Tap forms to solicit service fees in support of back end overhead necessary to facilitate purchased end-client functionality?

    Tap Forms is truly one of the great pieces of software for Mac products and would be my pick for the Apple hall of fame if there were such a thing. All the same I would rather not pay every month in perpetuity for a stand-alone app I am dependent on and likely to use for a long time to come. That becomes extremely expensive for the average Joe that isn’t a business accustomed to signing ongoing service contracts with their stand-alone software.

    Steve

    #52987
    Harry
    Participant

    I’ve been testing the fix and I’m happy to report that it’s working.

    On my iPad, one thing that took a little time to test is when a script updates a date and that changes the sort order, it takes up to 5-7 seconds until the form syncs and then the sort order is updated correctly. At first I thought that wasn’t working, but a little patience proved otherwise.

    For me, everything is working fine now for all my forms.

Viewing 15 results - 76 through 90 (of 3,016 total)