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.

[fmp-if] driving me nutz .....

Featured Replies

Hi

I got a simple <text> & <text1> input fields (which are working perfectly) on my cdml page.

When I try to insert an [fmp-if:test.eq.1]<text>[fmp-else]<text1>[/fmp-if], everything is also working perfectly.... BUT, when I try to save I got a 102 erroe (which is field missing), but it is all there and you can see on screen the data of those fields.

To make a long story short :)

<text> - working

[fmp-if...] <text> [/fmp-if] - I cannot save but data is displayed correctly.

any ideas?? confused.gif

we need to talk a bit about your definition of > when I try to save "save"....<

save what? insert record? save the file.html?

post some more and perhaps we save a few walls from your head ;-)

All the best!

  • 1 month later...
  • Author

Hi

sorry for the late reply...

I ment "submit" and not save.

Every time I insert an [fmp-if] in portal then I get the same result-> error on submit.

what could it be???

Show us bits of your code...

  • Author

Here you go (I'll give you the general idea because i'm not at home...):

[FMP-Portal:DB1]

[fmp-if:test.eq.1]<textbox for db1::field1>[fmp-else][fmp-field:DB1::field][/fmp-if]

[/FMP-PORTAL]

-submit -clear

And one more thing - If I remove the IF statement and leave the textbox then it is working fine !!!mad.gif

IMHO -- IF can be evaluated in response page, not on the same page as submit is.

  • 3 weeks later...
  • Author

Could you please explain what do you mean?

What does the page source look like after it is loaded into a browser?

All the best.

Garry

IF usually cannot process on the submit page.

Only if the submit page has IF as result of previous page query, then such IF will be processed by WC.

Generally speaking -- if you see the IF in source code of your page, WC didn't processed that IF condition.

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.