![]() The only time you wouldn't want to do that is if you are debugging your script and are trying to watch the data before and after running your script and are watching the console log window for messages. I really think you should forget this button exists until you are a seasoned script-writer.Ĭheck it if you want to run the code as you save and exit the script editor, which is great for maintaining your data integrity (things that are calculated have been updated and are current). You may think it's going to save like your field values save when you go on, but it doesn't. Ok, you can use this button, but you may lose work or you may have already saved your work with CMD+S. You'll see some debugging in the videos later. ![]() ![]() It's your window of choice for debugging (finding and fixing problems) your script. The console log is where you are going to see script information, error messages, and things you tell it to display using the console.log("something to display in the console log") command. In the case of fields of type Script, you can even format what you get back so it looks pretty on your form: Remember that Results are what your script is going to send back to Tap Forms. This is just my programmer brain inserting unnecessary-for-now specific definitions.Īt first glance, the Tap Forms script interface might look intimidating with those boxes and buttons and lists. You can run a form level script four ways.Ģ.1 From the editor window (which is what I did in that last video when I pressed the Run script button with the triangle on it).Ģ.4 From code. It's useful for when you want to use or update all of the form's records in some fashion or want to import/export data or want to have code you can run from other scripts. This script only runs when you specifically tell it to. (Or you tell the script to run by pressing the Run script button with the triangle on it in the script editor window.) Fields of type Script are good for when you want to do something to or with the current record (like fill a field with combined fields or fill a field with information from linked forms) as fields change.Ģ - A Form Level Script. This script runs whenever one of the fields you used in the code changes its value. Tap Forms has two places you find scripts.ġ - A Field Type of Script (aka Field Level Script). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |