Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linking scripts

Featured Replies

Well, i'm stuck!

This is the problem.

I have a couple of scripts working togheter. The first one looks like this.

Go to record - First

Loop

If (check = "A")

Set field (temp; someText)

Perform Script (Script 2)

Else If

Set field (temp; somethingElse)

Perform Script (Script 2)

End If

Go to record (Next; Exit after last)

End Loop

Then in script 2 theres a couple of other arguments and if's but it calls a third script.

The problem is that when i let "chain" go to the third script (1 -> 2 -> 3) then it won't continue looping in the first script. But if i replace the 2 or 3 script with a simple one just displaying a custom dialog then it works fine.

My question is if there is any condition that forces the script to continue or if any one has any guesses why it stops?

I believe we would need to know what scripts 2 and 3 do (particularly 2), but a thought ...

If it works with just a simple Custom Dialog display (which doesn't require a test), that indicates to me that an Else condition is being missed in your sub-script logic. Check your sub-script If[] tests carefully. You may need an Exit Script within an If[] to force early termination and return to 1.

  • Author

I will check else and if's and if that doesn't help i'll publish the completescripts!

Thanks!

P

I missed seeing this the first time. Why do you have an Else If with no test? I assumed it was an Else first time I read it. Without a test, this boolean will always evaluate as false and that Set Field [ ] will never happen.

  • Author

I solved it!

While checking my if conditions i found the problem. After the 2 script was executed and the process returned to the 1 script there was a go to next exit after last script step. The problem was that in one of the linked scripts i changed layout but never changed back. The problem was solved by adding a Go To Layout (a name) after returning from the 2 script.

I'm quite happy that i found it so quickly since this is a monster of a script. 7 scripts in all linked together.

Thanks for the help!

p

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.