• Resolved michaelgappa

    (@michaelgappa)


    Hello,

    I tried using the example code and wrapped it with [msdyncrm_twig] to see if it creates a record when submitted. But when I hit submit, the page refreshes and nothing happens in the CRM. Any pointers to get this working so I can build my own form?

    Thanks

    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)

    @michaelgappa can you show the code that you wrapped with the shortcode tag?

    Thread Starter michaelgappa

    (@michaelgappa)

    Here you go.

    [msdyncrm_twig]
    {% form entity=”lead” mode=”create” required=[“lastname”, “emailaddress1”, “description”] %}
    <form method=”POST”>
    <input name=”firstname” required placeholder=”First Name”>
    <input name=”lastname” required placeholder=”Last Name”>
    <input name=”mobilephone” type=”tel” placeholder=”Phone Number”>

    <textarea name=”description” rows=”4″ placeholder=”Share Your Story”></textarea>

    <button type=”submit”>Submit</button>
    <input type=”hidden” name=”_key” value=”{{form.key}}”>
    </form>
    {% endform %}
    [/msdyncrm_twig]

    Plugin Author alexacrm

    (@alexacrm)

    @michaelgappa

    twig looks fine. When that happens, it’s usually something on CRM side that stops the processing. In case of custom forms it’s up to you to process the errors if any, see https://alexacrm.com/kb/plugin/twig/messages-in-custom-twig-form/ for details.

    You can also enable Debug logging on About plugin tab and check if there is any additional information there.

    HTH

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying Custom Form Help’ is closed to new replies.