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.

disable inlineaction (with javascript)

Featured Replies

I want to disable an inline action.

Suppose this peace of JS code

in a top frame i have a variable perform=0

in a data frame i have this peace of code

if (not perform)

{

[FMP-InlineAction]

[/FMP-InlineAction]

perform = true

}

Now the first time this page is called the inline action is excecuted.

The next time this page is loaded by the user (in the same session) the page should be loaded

but without the inline action.

My Q is this : does the if statement indeed stop the inline action from executing after the variable is set to true.

I did some testing my self and i think indeed it works, but i am not sure.

Can any of you comment on this.

Thanks Jitse

The InlineAction will be performed on the server before the page is sent to the browser. The Javascript will perform in the browser as the page is loaded. Hence, the Javascript does not affect the InlineAction.

You can, however, have the Javascript set a Token which is tested by an [FMP-If] statement on the next call of the page.

All the best.

Garry

  • Author

Thanks garry for your response.

Indeed, i have assumed your answer.

So i need some reprogramming to do

Jitse

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.