• Resolved ojala67

    (@ojala67)


    Hi,

    I’m unable to set the default value.

    [msdyncrm_twig]
    {% form entity=”lead” mode=”create” default='{“leadsourcecode”:8}’ %}
    <form method=”POST”>
    <input name=”firstname” type=”text” required=”” placeholder=”First Name”>
    <input name=”lastname” type=”text” required=”” placeholder=”Last Name”>
    <input name=”telephone1″ type=”tel” placeholder=”Business Phone”>
    <input name=”emailaddress1″ type=”email” placeholder=”Business Email”>

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

    Thanks for your help

Viewing 1 replies (of 1 total)
  • Plugin Author alexacrm

    (@alexacrm)

    @ojala67

    default is for setting values on the form and I don’t see leadsourcecode anywhere on the form. If you don’t want to display it declare hidden field then it’ll be submitted.

    Hth

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to set default value’ is closed to new replies.