• Resolved jenn0014

    (@jenn0014)


    I cannot get my head around the TWIG set up and there is little to no how to guides avalible anywhere. I current use the shortcode 

    [msdyncrm_form entity_name='lead' form_name='property' mode='create' captcha='true' redirect_url=https://www.stepproperty.co.uk/thank-you/ default="{leadsourcecode:100000008} {new_enquirytype:100000001} {new_propertytype:100000000"]

    and the form works great but we have been getting ALOT of junk so i want to add the recaptcha which i understand doesnt work with the short code. I have attempeted to use TWIG but cannot get it right.
    <form method="POST"></form>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexacrm

    (@alexacrm)

    @jenn0014

    you can start by simply replicating your shortcode but using twig instead. The most substantial change is from text to twig objects to describe the parameters.

    [msdyncrm_twig]
    {% form entity="lead" name="property" mode="create" captcha="true" redirect="https://www.stepproperty.co.uk/thank-you/" default={"leadsourcecode":100000008, "new_enquirytype":100000001, "new_propertytype":100000000} %}{% endform %}
    [/msdyncrm_twig]

    Make sure your recaptcha is v3, as v2 is way too easy to break.

    Hope it helps

    • This reply was modified 2 months ago by alexacrm.
    Thread Starter jenn0014

    (@jenn0014)

    Amazing thank you i didnt reliase it was that simple! The only problem now is that the Captcha is showing twice and randomly the word tasks https://stepproperty.co.uk/office-space/

    • This reply was modified 2 months ago by jenn0014.
    • This reply was modified 2 months ago by jenn0014.
    Plugin Author alexacrm

    (@alexacrm)

    @jenn0014 couple things to try

    1. Your instance seems to be disconnected from CRM and running on cached information. Perhaps the secret has expired. Reconnect your instance.
    2. Remove the first form so that you have only the second one?
    3. Do you have tabs or hidden sections on the form in CRM? Generally we recommend to use quick view form type – no script and less chance to get unsupported elements or hidden tabs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.