Search Results for 'script'
-
Search Results
-
I’m trying to write a script that adds a pdf to a file attachment field, but addFileFromUrlToField consistently crashes Tap Forms (at least on iPadOS 18.2.1).
Here’s an example with the Tap Forms manual:function Test_Pdf() { // Field ID var file_attachment_id = 'fld-858558a7165649e6ac3bd117e17483ec'; // file url var url = "https://cdn.manula.com/user/1444/1328_16794_en_1538683502.pdf?v=20240123105634" // add new record var newRecord = form.addNewRecord(); // add to field newRecord.addFileFromUrlToField(url, file_attachment_id) } Test_Pdf(); document.saveAllChanges();This script does create a new record, but then crashes when it tries to add the pdf. I’ve tried different files and even images that do work when using addPhotoFromUrlToField to a photo field, but Tap Forms always crashes.
Is there something special I should do to the file object before adding, or is this a bug?Topic: Scripting advice please
I have just created my first application in Tap Forms. Works well and was simple to create.
I now want to explore Scripting but need a few pointers to where to start. I can see the panel on the right of the Form screen with 3 tabs Form, Fields, Scripts.
Clearly I need to create a new Script in the Scripts tab.
Questions:
1 how do you attach a Script to a Form?
2 How do you attach a Script to a Field?
3 In each case when is the Script activated?Can your please direct me to the documentation that explains this.
Howdy :-).
Apologies for a probably stupid question but I was not able to find a description in the Manual.
I’ve got a TapForms v5 DB on my MAC; added a) a coloured Form for entry and maintenance and using b) the chart / graph view.
Now – downloaded Tap Forms on iPad and synced via iCloud – all data being synced and ok; however, I am missing my own created coloured form.
What do I have to do to get it synced as well?Many thanks in advance.
RobertIs there a simple way, on creating a new child record, to set the value of a child field to a value in the parent record? I do not want these fields synced, I just want to set a default starting value on the child record.
If not, it’s been nearly 10 years since I’ve written JavaScript (and I hated it then), so could use a pointer in the right direction for knowing Tapform specific syntax/object names.
Thanks!