Search Results for 'script'
-
Search Results
-
Hi there, been a very satisfied user of TapForms so far, brilliant stuff, allowed me to organise my repair-business fantastically.
I have created a good database that allows me to store customer’s details and the machines’ details they hand in for repair.
I work a lot with serial numbers of computers, and it would be very nice if I could create a button that opens up a script (that, in turn runs a certain URL to do a lookup on a serialnumber).Is there a way to achieve this?
So basically, I would like to have a button that takes a value from a Field (‘serialnumber’), and uses that value to run a script.
much obliged
Hi
In full screen mode the search icon for saved searches is all jumbled up with the descriptive text for that search?
CheersHello! We were former Bento users who finally bit the bullet to upgrade and we are thrilled with Tap Forms so far. We use it to enter in simple records of objects with date/time/description. While we have a small number of records (about 2600) they all have 1 high-resolution photo attached making the database just north of 2GB.
I created a CouchDB server and can sync between two MacBook Airs without issue, the trouble is with the 1 iPhone we’re trying to sync- for the life of me, I can’t figure out how to get the initial database on there!?
I’ve tried putting it in iCloud, Dropbox, etc., but when I go to try and “import a backup” from the iOS app, it sort of does nothing and no file name is listed in the field, even though I can see the 2GB file in both Dropbox and iCloud. (And marked the file for “offline” so it was already downloaded.)
I’ve tried using the “-> send to” device button and it starts to work, but typically times out after about 5-10 minutes.
Any thoughts on what I can do so that I can have the same database ID on my iPhone to connect it to the CouchDB for syncing? Maybe I could make a version of the database and strip out all the photos or something to shrink it down?
Many thanks for any advice and a great overall product.
With the release of Tap Forms 5.2.2, there are new Text functions available for Calculation Fields. I’ve played around with them a little bit, and thought it might be helpful to share some of the things I’ve found out about them and to provide an example that might be useful.
FUNCTION DESCRIPTIONS AND COMMENTS
Here are the new text functions. In the formula arguments, note that A and B represent text strings, while X represents a numerical value. Arguments can be constants, references to other fields, or expressions that evaluate to a text string or number, as needed. Initial descriptions are quoted from the Tap Forms “Edit Formula” sheet:
POS(A,B)— “Returns the position of B within the text A.”
Details: The returned value is an integer, so make sure to set the Result Type to Number, otherwise it won’t work. Note that it is the first occurrence of the search string that is reported.
Example: POS(“Hello123Hello456”,””o”) returns the numerical value 5, meaning that “o” was found at the fifth position of the input string.
Comment 1: An enhancement to this function would be to include a third argument that would be a start value for the search. So, for example, POS(“Hello123Hello456”,”Hello”,3) would return the value 9, since that is the first position where the full string “Hello” is found, beginning the search from the third character onward.
Comment 2: If Tap Forms is localized for any right-to-left languages, will this function scan the string and count characters from right to left?
Error Behaviours: If the search string is not found, the function returns NULL, not the number zero. I’m not suggesting it should be one way or the other, just reporting how it works.LEFT(A,X)— “Returns the left-most X characters from the text A.” (I cleaned up the description a little bit).
Details: The returned value is a text string, so make sure to set the Result Type to Text, otherwise it won’t work.
Example: LEFT(“Hello123Hello456”,6) returns the text string “Hello1”.
Error Behaviours: The argument X would normally be an integer between the values of 1 and the full length_of_string. The function returns the following results for abnormal arguments: If X=<0, it returns the NULL value. If X has a decimal part, the decimal part is ignored. So X=5.9 will result in the left-most 5 characters being returned, same as X=5. If X > length_of_string, then the entire string is returned.RIGHT(A,X)— “Returns the right-most X characters from the text A.” (I cleaned up the description a little bit).
Details: The returned value is a text string, so make sure to set the Result Type to Text, otherwise it won’t work.
Example: RIGHT(“Hello123Hello456”,6) returns the text string “llo456”.
Error Behaviours: (same behaviours as for LEFT(A,X)WORKING EXAMPLE
This example assumes that you are importing name data from another source, and the values come in the format of LastName+FirstName. I know, the most likely delimiter would be a comma, not a plus sign, but bear with me. Your goal is to process the LastName+FirstName field to product two calculation fields: First Name and Last Name. So if your text field contains the value “O’Connor+Sinead”, then First Name would show “Sinead” and the Last Name would show “O’Connor”.
Last Name: This one is easier. The approach is to find the position of the “+” sign, call it N. Then the Last Name is simply the first N-1 characters of LastName+FirstName. The formula is
LEFT(LastName+FirstName,POS(LastName+FirstName,”+”)-1). Result Type is Text.First Name: This one is slightly more involved. If the “+” sign is at position N, then the First Name occupies the right-most K characters, where K equals the full length of the LastName+FirstName string minus N. The formula is
RIGHT(LastName+FirstName,LENGTH(LastName+FirstName)-POS(LastName+FirstName,”+”)). Result Type is Text.Comment: Okay, so why did I use the “+” sign in this example instead of a comma? Because it doesn’t work with a comma. Commas are used as delimiters within the Tap Forms functions, so if you try to insert a text argument of “,” then it fools the parser into thinking that there are too many arguments and the whole function fails. Believe me, I tried to make it work. I tried adding a separate text field named “Comma” with the value “,” and referencing that field in the name formulas. No dice. I also hoped that Tap Forms might recognize the
CHAR(X)function, which returns the character associated with the ASCII value X (the ASCII code for a comma is 44). So I tried replacing “,” with CHAR(44), but also no joy. So until such time when we can ESCAPE a comma value in a function, the approach to this problem would be first to massage the source data in a word processor or spreadsheet to replace the comma character with a plus sign, then import the data into Tap Forms.I hope that the above information and example will be useful in your applying these functions to your own forms.
— Mike
Brendan,
Please consider adding a FIND function like the one in Excel:
FIND(find_text,within_text,start_num), which returns the numeric position of the found text.I was thinking about a solution/workaround to Jose’s use case in another thread (Pick Lists Request). I had suggested that he create a set of pick list values that start with a short code followed by a verbose description, and then to shorten his column width in multi-column view to display only the initial short codes. He responded that his short codes would be varying lengths, meaning that the display wouldn’t look clean. I suppose he could pad out the shorter short codes with spaces, but I was thinking of a different approach.
That approach would be to use a calculation field to return just the initial CODE portion of the lengthy CODE_space_dash_space_VerboseDescription field. Easy to do with the
SUBSTRfunction, assuming that you know the position of the “dash”. Hence the notion of adding aFINDfunction.I think it would have a lot of general utility for string manipulations. I’m not at all advocating this as an alternative to Jose’s request; just something else to think about adding.
Thanks,
MikeTopic: Pick Lists Request
Hi Brendan,
With pick lists, sometimes, or many times, it’s difficult to find a short description for the pick list value, allowing us to understand their meaning promptly.
Then we have longer descriptions, meaning wider columns on Multi-Column Views (thats my favorite view) and the need for moving view content left-right to view all data.
To overcome that I use codes on pick lists to reduce columns width.
With the growing number of Documents, Forms and Pick Lists it’s hard to remember all those codes and their meaning.My suggestion is:
– Allow two fields on a pick list; one for a code and the other for a description.
– Then, when on a form choosing a code value for a field from a pick list, the popover window would show us the available codes and descriptions allowing us to choose the one we want.Jose
Hi,
I am creating a sales order receipt, and wanted to show automatically the description by just typing or pluggin in the item # in Item field, If I type “FT01” it will automatically display “Dasilog” in the Description Field, the how can I do that?.
Qty Item # Description
1 FT01 Dasilog
3 FT05 TasilogThanks.
BTW, I am still using the OLD Version of TF.