Only show items in lookup filed that have NOT already been used in a form

Only show items in lookup filed that have NOT already been used in a form

Hi,

I have FORM A with a field "SIM" that is linked to the field "SIM" in FORM B. 

The challenge: A "SIM" record in FORM-B can only be used/linked ONCE in a single record in FORM-A, since lookup fields cannot be marked with "no duplicates" I would like to restrict the lookup field in FORM-A to only show records that have NOT been used before (or that basically are "available").

I suppose this needs to be done in a workflow function "on create/edit", what is the appropiate Deluge code for this?

Thank you!

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方