<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a custom Validation Rule similar to salesforce.com in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/873917#M6908</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am new to HubSpot and I have experience with salesforce.&lt;/P&gt;&lt;P&gt;What I want to do is, and I will give a simple example just to understand the need:&lt;BR /&gt;1. If the user Closed Lost a deal, I want him to fill also the Closed Lost Reason field.&lt;/P&gt;&lt;P&gt;In salesforce we can create a validation rule that checks that.&lt;/P&gt;&lt;P&gt;I understand that I need to do this with Workflow, I already have the branch that checks if the status = "closed lost" and the closed lost reason is empty. How do I add the action to the workflow to prevent the user from saving the record if he did not fill the closed lost reason? &lt;U&gt;I also want the user to recieve an error message in the record page&lt;/U&gt; (It will be great to know if i can also prevent creation if someones manually creating the record stright to closed lost for documnetation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Additional question, If I set that kind of custom validation in HubSpot, and we have a Form in our website that checks if the user fills a value for field A, then he must fill field B, If i have that kind of automation that prevent the creation of that scenario, what will happen if the user fills a form? will it prevent the record from being created or it will be created anyway in HubSpot? (Note: Let's ignore the fact that we can handle this with set up the fields as mandatory in the form)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will appreciate any help, Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 16:23:22 GMT</pubDate>
    <dc:creator>OBetzalel</dc:creator>
    <dc:date>2023-11-02T16:23:22Z</dc:date>
    <item>
      <title>Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/873917#M6908</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am new to HubSpot and I have experience with salesforce.&lt;/P&gt;&lt;P&gt;What I want to do is, and I will give a simple example just to understand the need:&lt;BR /&gt;1. If the user Closed Lost a deal, I want him to fill also the Closed Lost Reason field.&lt;/P&gt;&lt;P&gt;In salesforce we can create a validation rule that checks that.&lt;/P&gt;&lt;P&gt;I understand that I need to do this with Workflow, I already have the branch that checks if the status = "closed lost" and the closed lost reason is empty. How do I add the action to the workflow to prevent the user from saving the record if he did not fill the closed lost reason? &lt;U&gt;I also want the user to recieve an error message in the record page&lt;/U&gt; (It will be great to know if i can also prevent creation if someones manually creating the record stright to closed lost for documnetation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Additional question, If I set that kind of custom validation in HubSpot, and we have a Form in our website that checks if the user fills a value for field A, then he must fill field B, If i have that kind of automation that prevent the creation of that scenario, what will happen if the user fills a form? will it prevent the record from being created or it will be created anyway in HubSpot? (Note: Let's ignore the fact that we can handle this with set up the fields as mandatory in the form)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will appreciate any help, Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:23:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/873917#M6908</guid>
      <dc:creator>OBetzalel</dc:creator>
      <dc:date>2023-11-02T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/873919#M6909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/652691"&gt;@OBetzalel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HubSpot has recently launched a beta for this, conditional properties. You can a step by step instruction here:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/crm-setup/set-up-conditional-logic-for-enumeration-properties" target="_blank"&gt;https://knowledge.hubspot.com/crm-setup/set-up-conditional-logic-for-enumeration-properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These rules don't translate into forms. However, dependent form fields might serve a similar purpose:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/forms/use-dependent-form-fields" target="_blank"&gt;https://knowledge.hubspot.com/forms/use-dependent-form-fields&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any follow up questions!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:29:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/873919#M6909</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2023-11-02T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/874932#M6923</link>
      <description>&lt;P&gt;Thanks Karsten,&lt;/P&gt;&lt;P&gt;So I understand that it does not prevent from the user to save the record, just specified that there's an issue with the record, same with creation from what I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 15:02:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/874932#M6923</guid>
      <dc:creator>OBetzalel</dc:creator>
      <dc:date>2023-11-05T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/875029#M6925</link>
      <description>&lt;P&gt;Hi guys!&lt;BR /&gt;&lt;BR /&gt;I hope you don't mind my asking a follow up question. Regarding Q1. My understanding is you want Closed lost reason to be filled up when deal is moved to closed lost.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My follow up question, is why not require it using the settings in the deal pipeline?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raffy_0-1699240541178.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/102628iAB3B03C181C8080D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raffy_0-1699240541178.png" alt="Raffy_0-1699240541178.png" /&gt;&lt;/span&gt;&amp;nbsp;from&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raffy_1-1699240580473.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/102629i8C53C3573096B342/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raffy_1-1699240580473.png" alt="Raffy_1-1699240580473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raffy_2-1699240646260.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/102630iA653D7D31A61BD21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raffy_2-1699240646260.png" alt="Raffy_2-1699240646260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 03:17:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/875029#M6925</guid>
      <dc:creator>Raffy</dc:creator>
      <dc:date>2023-11-06T03:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/875595#M6934</link>
      <description>&lt;P&gt;Q1 - question 1 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:00:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/875595#M6934</guid>
      <dc:creator>Raffy</dc:creator>
      <dc:date>2023-11-06T23:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/876741#M6949</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&amp;nbsp;If I want to create records manually in the system, can I ask for the user to ask the First Name + Last name in the same time? if he did not fill it, I want the system to throw an error or not allow the user to create the record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 16:33:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/876741#M6949</guid>
      <dc:creator>OBetzalel</dc:creator>
      <dc:date>2023-11-08T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom Validation Rule similar to salesforce.com</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/909631#M7718</link>
      <description>&lt;P&gt;This functionality does not provide nearly the same support that Salesforce does. For the example OP gives, it is sufficient, but the logic only supports a limited number of fields. In my case, I wanted to create validation around a date field, not allowing it to be older than another date field and am not able to do so.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 20:15:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Create-a-custom-Validation-Rule-similar-to-salesforce-com/m-p/909631#M7718</guid>
      <dc:creator>MGerber18</dc:creator>
      <dc:date>2024-01-22T20:15:08Z</dc:date>
    </item>
  </channel>
</rss>

