Jump 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.

Featured Replies

Can anyone help me fix this script. Not sure if I have the if else statements correct... See attached.

Thank you

Script.txt

You mean something other than the fact that there are 3 If statements and only 1 End If statement? Not that its easy to decipher to begin with but without the End Ifs its impossible.

You havent told us what the error is??? Are you getting an error when you try to save the Script or is it not performing the way you expect. If its not performing the way expect you might try to give just a tad more detail.

  • Author

Oh opps, Well I did see the End if (Fixed them) but the script only run the first Half, that is the area where it says [is empty (policy notes)]... so if i check the add policy notes [not is empty] nothing happends it does not even open the email?

Thank you

First of all, use Set Field [] instead of Insert Calculated Result []. The ICR step requires that the field be on the current layout: it'll fail if it's not. Set Field has no such restrictions.

The only time Set Field doesn;t work is when you want to enter data into the field that does not match the field type: for instance, you cannot use set field to enter "<1/1/2006" into a date field because "<1/1/2006" itself is not a valid date. In this instance you need to use ICR, but you'll also need to make sure that the field is on the layout. Most defensive prgrammers ensure this by making a layout dedicated to the task, and switch to this layout specifically for this step, then switching back (use Freeze Window to hide it).

you cannot use set field to enter "<1/1/2006" into a date field because "<1/1/2006" itself is not a valid date.

Of course you can. You're thinking of version 6 and below.

  • Author

Other than that Item (Set Field vs Insert Calc) can anyone tell me why my script does not work in the second half [not isempty] area?

  • Author

How do you write a script with an if statement using two verables with two different outcomes.

See example above. I thought the script made sense but it only works on thetop half... meaning when the script looks at the add policy note the script does not even run. Can some one help me

If [ Ck_Bx_Flag::Category = 100 ]

Set Field [ Ck_Bx_Flag::Category; 200 ]

Else

Set Field [ Ck_Bx_Flag::Category; 100 ]

End If

  • Author

Got that one... But I need something that is like the example attached above... It has two layers...

Thanks,

Joseph

Create an account or sign in to comment

Important Information

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

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.