Search Results for 'script'
-
Search Results
-
Topic: Picklist Delete Values?
Hey all, sorry to post so much but I’ve been spending a lot of time trying to explore the power of the Javascript API and I keep running into roadblocks while trying to create features for my project manager in Tapforms Pro. I just want to check my understanding of some of the JS functions.
I know you can add values to a pick list by using the addValue method on a pick list object. I discovered that this will permanently add values to the pick list. I thought it would be cool idea to be able to dynamically create a pick list for a text field based on what’s happening in the form, but the addValue method is permanent. It would be cool to have a deleteValue which would allow for dynamically generated pick lists for a form/ document.
Thanks.
I 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.
Hey all, so far I’m excited about the power of scripting in TapForms and am trying to put it to good use.
I’m trying to create a template system where I can copy/move placeholder records to a new parent record. Normally to assign a child record to parent record you would click the “Select and link existing records” object/ button which would bring up the possible parent records for reassignment (see screenshot). I’m wondering if this could be done through scripting.
In this example I have a Clients parent form linked to a child Projects form.
You can seem to access the parent record by doing the following (see second screenshot):
function Reassign() { var clients = record.getFieldValue('fld-25ab19edf2014cc0952446ed09975851'); console.log(clients); } Reassign();Console shows a record object:
2025-11-23, 8:02:35 AM / Projects / Reassign
[object CDRecord]So can we somehow code a different parent record for the child record somehow?
Thanks.
I remember doing this in MS Access where you could link / join more than one field from the parent to child table (form). In TFP it would open up a few very cool possibilities such as the ability to show/ edit/ create subsets of records.
So for example, if you link a Project Field AND a Client Field to a child Tasks Form, it would auto-populate the Client and Project fields in the tasks form if you added a record.
Similar in purpose, it would be cool to be able to use something like a “Link to” field to connect to a pre-created search. I know you can use Javascript to access Search records, but it would be easier for people to do it with a “Link to” field (or whatever it could be called). Clicking on the populated records would go to that set of (search result) records for editing. I feel adding records from this type of hypothetical field wouldn’t be possible because of the complexity of the user inputted search criteria.
Thanks for reading.