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

Hello,

 

I have a project table which can have many related quotes, but only one quote can be accepted.

 

On the quote layout I have a quote status field with a drop down list of values like, prospect, estimate, accepted...

I have a calculation field on the project table that counts how many related quotes there are that are accepted. 

 

On the quote status field I have an on object modify script trigger that sets the project status based on the changed quote status.

 

I've tried to add to this script the condition that if the user selects "accepted" and the project accepted quote count = 1 then they are shown a dialog box that only one accepted quote is allowed per project and it halts the script.

 

Where I'm having trouble is reverting the quote status back to the previous value it held before it was modified.

 

How would you handle this?

here's an idea -

 

make a hidden field for a temporary holding place for the quote status field value.

 

make a script that sets the hidden field with the value in the status field - set this script to run onobjectEnter. now, you have the original value saved so that if your condition proves to be true, you can reset the status field with the value that is now being stored in the temporary, hidden field.

 

hth,
Martie

I would have a field in Project::_kF_QuoteIDAccepted. The script that is triggered OnObjectModify of status would capture the initial value in a script parameter and store it in a $var. Then you can restore the original value from the $var, if the branching in your script dictates that the modification should be reversed.

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.