Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms Pro › Script Button in Default Layout
- This topic has 5 replies, 3 voices, and was last updated 1 month, 2 weeks ago by
Shane.
-
AuthorPosts
-
November 26, 2025 at 8:43 PM #53313
ShaneParticipantI love the default layout as it’s quick, easy, and super clean. It’s very difficult to come up with something that clean looking by creating my own layout.
The only disadvantage of the default layout is you can’t place script buttons on it (that I know of). It would be really useful to do have this functionality. Either something like a “button field” or a setting in the Script Field to control if the script field will execute the included script automatically or by button trigger in the default layout field. Some simple UI examples have been attached.
Attachments:
You must be logged in to view attached files.November 27, 2025 at 10:25 AM #53318
Daniel LeuParticipantYou can add the script button
{...}in the toolbar that displays all your favorited scripts. That’s what I do.I like to use my keyboard shortcuts and use my QuickLaunch script extensively (https://lab.danielleu.com/tapformspro/script-library/index.html?p=Quick-Launch). It provides a pop-up that allows you to select the document script you want to run.
Another option is using a weblink field and linking this to the script url using the
tfpro://...url scheme. You can get the script link in the script editor.Attachments:
You must be logged in to view attached files.Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricksNovember 27, 2025 at 2:13 PM #53320
ShaneParticipantThanks for the input, I’ll explore those possibilities.
I saw your website and see that you also see a lot of potential for some commercial applications with Tapforms. Employing this software in a commercial setting could potentially sell a lot of licenses to organizations. I think however, there is some room for improvement with respect to UI design in the layouts to make things more intuitive for a non-technical person. Even if power users can program these layouts for average users it would be beneficial.
TLDR: In my case, I’m creating a productivity/ business organizer in Tapforms because I just couldn’t get anything else to work the way I wanted them to. To this, I want to be able to hand over the synchronized documents to my wife so she can help me with the business admin. She has to be able to intuitively navigate around the forms/ scripts to get things done.
-
This reply was modified 1 month, 3 weeks ago by
Shane.
November 29, 2025 at 8:20 AM #53324
ShaneParticipantFor others interested, what I did is create a “Website” field in each respective forms that contained the URL of that record generated by a script:
function Url() { var url_id = 'fld-f835751013af4cc7b8fb63aabd0123f1'; var theURL = record.getUrl(); record.setFieldValue(url_id, theURL, true); } Url();This way if I select and display records via a table, I can click on the link to get to the selected record for further editing. My further plan is to augment the script to copy the referring URL into the clipboard and pasting it in a return/ back button in the destination record (via the website field) to go back to the referring record much like how a Link to Form layout object works. I’m not sure if there is something better in the API to do this.
I wish there was a better way to select, display, and edit a set of records in a layout much like a layout Link to Field object. Maybe the table field could be appended to include a link to the selected record(s) which will also breadcrumb back to the referring record much like the Link to Form layout object works.
-
This reply was modified 1 month, 3 weeks ago by
Shane.
December 1, 2025 at 5:18 PM #53329
BrendanKeymasterThe Table field object records don’t have a form itself, so there’s no form to navigate to. The Table field is basically a reproduction of Bento’s Simple List field, which is just a table of values and not a true relationship, unlike the Link to Form field. So that’s why there’s no navigation from a Table field to another screen. But doesn’t mean I couldn’t pop something up at some point to get to a full editor for each record or something at some point.
December 3, 2025 at 4:44 PM #53337
ShaneParticipantThat would be great. I may be more pedantic than most, but I feel like there needs to be a way to centralize the UI in TFP, namely being able to display collections of records within other record layouts without having to tediously code something in JS each time.
For a simple example, imagine we have a clients form, and an invoices form. Under a client record layout we want to display all the invoices that are unpaid for that client. While we can easily display the invoices for that client using a Link To field layout object, we cannot organically show invoice records using two criteria such as the current client invoices that are also unpaid without Javascript. You have to create a search for it which requires navigating through the forms pane to see all relevant information in a non-linear way, constantly clicking between searches and forms to view collections of data. It would be nice to have the ability to show any sets of records that are useful for the purpose of that form layout in a centralized way.
One potential idea that comes to mind is to somehow “Link To” a set of pre-created search records elsewhere in the document. However, this is probably harder than it seems depending on the underlying schema of the app.
-
This reply was modified 1 month, 2 weeks ago by
Shane.
-
This reply was modified 1 month, 3 weeks ago by
-
AuthorPosts
You must be logged in to reply to this topic.