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.

Script for Portal Item Status requiring 1 true & 1 False ?

Featured Replies

  • Newbies

I have a contact -> equipment loan ->line items <- products     soultion.

 

In my line items portal which is on my equipment loan layout  I have a item_In_Out  field which auto calculates to say "Yes" if the return_date in the portal IsEmpty.   When a date is entered into the return_date field the item_in_out field clears.

 

This is so I can visually see which individual items are still on load per each Equipment Loan Order.

 

The problem I am having is portals seem to auto create a new empty portal row for you to begin entering new data.   When this happens the item_In_Out  field auto populates a "Yes"  because the return_date isEmpty  which is fine.... but  I have not entered any product information into the subsequent fields in that portal row.

 

If Portals will always create a new row at the bottom of your portal waiting for data, how do I write a script that will still allow the "Yes" to appear if the return_date is empty but remain blank   if no product id etc has been entered yet.

 

My propblem is similar to invoice solutions whose portal has a trash can graphic in the portal row..... The bottom empty row will draw that trash can.

 

post-108547-0-23179100-1364430715_thumb.

The empty portal row occurs because the "Allow creation of records via this relationship"  checkbox is checked in the Edit Relationship dialog.  Uncheck it, and script the creation of new records with whatever conditions you require.

  • Author
  • Newbies

Great thanks!

  • 2 weeks later...

if you want to have the create portal row - use a conditional format to make the "X" delete button background white by using the invalid function.

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.