Skip 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.

Create new script by ???

Featured Replies

Hello I have a dilema whuch I have been trying to work out

I have hunted for a solution but with no Joy.

I have a table for Contacts and a Table for Companies which is joined via a relationship.

I have been trying to create a script that if the Contact does not belong to a company then the project in the Contacts Name or if the Contact belongs to a Company then Create the project with the Company name. 

I have tried with else and els if but with no joy.

As anyone have a script for this to work for me.

Thank You

Kinda depends on how you set up the relationship between Contacts and Companies.  If you're working off the assumption that one contact can only belong to one company then you probably have a company id field on the contact record.

As soon as you select the contact on your project, I'm going on the premise that you store the contact ID and thus have a valid relationship from project to contact.  (Doesn't need to be so but it changes how you'd check for the contact's company id)

Then at the point in your script where you decide on the project name you do an IF that checks if the company id field on contacts is empty: use the contact name, else (meaning the contact does have a company id populated) use the company name.

  • Author

Hello

At first I had the contact and the company name field in the same table but I couldn't work out how to create the script.

So then I added the Table for the Company and joined the relationship

I have attached the images of the relationship I have created I would prefer that the Company Name and Contact Name would be in the same table then if no cCompany as been added then it creates it in the Contacts Name.

Thank You

Screenshot 2020-12-16 at 11.47.39.png

Screenshot 2020-12-16 at 11.48.09.png

  • Author

Thank you bcooney

I have this but again I'm stumped  

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.