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.

Conditional Formatting - empty portal field indicator--first field only

Featured Replies

Greets, all:

I have a portal where I want to highlight the text field in it (in the first row) if a user fails to select a value for it; it would de-highlight after at least one value is chosen.

I tried using not IsValid ( EVENT_PRESENTER::_kflt_Event_ParentID ) as a calculation, and it sorta works: the field de-highlights after the first portal row field has a value, but still highlights the empty waiting/next portal row field beneath it.

Since the portal row isn't active (because I don't want to force the user to go to the field/portal row every time the record is loaded), I don't think a calc based on the active portal row will work...but I could be wrong.

Any ideas? TIA for your help!

  • Author

Figured it out: I created a calculation field (GetFoundCount) in the child table; I changed the Conditional Formatting field calc to:

Case ( ( EVENT_PRESENTER::zz_GetFoundCount__lcn ) = 0 ; 1 ; 0 )

So, if there are no related records then that results in a False in the Conditional Formatting calc, so no fill/highlighting; at least one record, a result of True.

*pats himself on the back* 

Edited by WF7A
Typo

I would think you want to do:

IsEmpty ( Self ) and not IsEmpty ( YourPortalTable::PrimaryKey )

provided that the PrimaryKey field auto-enters a value on creation, not on commit.

Can't see how the number of related records is relevant here. Do you not want to highlight the empty field in the 2nd or 3rd portal row, when a 2nd or 3rd record is added without filling that field?

 

  • Author

Thanks. For the primary key in all the tables here, it's auto-entered with a calculated value of Get ( UUID ), so keys aren't auto-entered serial numbers (...so no commit/on creation radio buttons available. )

No, no highlighting is needed after the first row is populated since the conditional formatting is just an indicator to remind users to populate the field/portal with at least one value; more than one is just gravy.

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.