Search Results for 'script'
-
Search Results
-
Hi Everyone,
First time posting here – very new user of Tap Forms.
I’ve got a price list going on the Mac version, I would like to know if there’s a way I can run a script to increase the number in a number field by a percentage.
I don’t even seem to be able to get of the ground so if someone could show a code example I would really appreciate it.
Thanks
Hi,
i’m using the following java script code to replace characters:
var chars = {'ß':'ss','&':'und','.':'','ö':'oe','ä':'ae','ü':'ue','é':'e','è':'e','Ö':'Oe','Ä':'Ae','Ü':'Ue','É':'E','È':'E'}; var nachname = (record.getFieldValue('fld-eef248f9679f47eb98598b22133da6ea').toString().replace(/[ß&.öÖäÄüÜéÉèÈ]/g, m => chars[m])).toString().replace(/\s/g, '%20');Nothing is replaced with this code.
Adding for example UTF-16 code for character ‘ü’ -> ‘\\u00fc’ to the second variable string:
var chars = {'ß':'ss','&':'und','.':'','ö':'oe','ä':'ae','ü':'ue','é':'e','è':'e','Ö':'Oe','Ä':'Ae','Ü':'Ue','É':'E','È':'E'}; var nachname = (record.getFieldValue('fld-eef248f9679f47eb98598b22133da6ea').toString().replace(/[ß&.öÖäÄüÜéÉèÈ\\u00fc]/g, m => chars[m])).toString().replace(/\s/g, '%20');leads for for example with the text “Stümper” to
‘Stundefinedmper’
Even if i add the UTF-16 code to the first variable, results to the same undefined issue.
Does anyone have an short idea to solve that?
Thanks
ChrisHello,
I have a parent form called Clients and child form with a number field called Target. I’d like to use record.getMaxOfLinkedFieldForField(linkedFieldID, fieldID); to find the max of Target for each particular client.
I’ve tried using different field ids in the linkedFieldID and fieldID positions and the the script will run without errors but no output is produced.
Are others having success with this?
Kind Regards, Dan
Hello All,
I have TapForms iPad form connected to a client form via a “linked to form field”. When I run a simple script to duplicate the current record, the duplicate doesn’t show up until I return to list view.
The script:
var copyOfRecord = record.duplicate();
document.saveAllChanges();This works as hoped in a “Table Field” record, but not otherwise.
I’m surely missing something.
Kind Regards, Dan