• Resolved siddiquemahsud

    (@siddiquemahsud)


    I needed to place a lookup field on a custom form, and want to show the lookup dialog window as well. is this possible? any example please

    {% form entity="contact" mode="create"  %}
    <form>
        <div class="form-group">
            <label>
                First Name:
                <input class="form-control" name="firstname">
            </label>
        </div>
        <div class="form-group">
            <label>
                Last Name:
                <input class="form-control" name="lastname">
            </label>
        </div>
        <div class="form-group">
            <label>
                Account:
                <input class="form-control" name="account" >
            </label>
        </div>   
        <div class="form-group">
            <button type="submit" class="btn btn-primary">Send</button>
        </div>
    </form>
    {% endform %}
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Take a look at templates/twig/form/lookup.twig file – that’s the template used to render lookups in Dynamics 365 forms.

    Thread Starter siddiquemahsud

    (@siddiquemahsud)

    @alexacrm, can please give some example of using the lookup field in the dataverse integration twig template for custom form. actually I’m very new the WordPress plugins code.

    Plugin Author alexacrm

    (@alexacrm)

    form.twig uses the following lines to process lookups:

    {% include "form/lookup.twig" %}

    The lookup.twig template contains everything you need to render the lookup dialog. You can start by copying the twig from that template and inserting it into yours.

    Thread Starter siddiquemahsud

    (@siddiquemahsud)

    @alexacrm,

    thinking that the lookup.twig is only avaialbel in dynamics 365 Integration plugin, Is this also exists in the DataVerse Integration plugin?

    Also, where I can find the it in the DataVerse Integration plugin (any path please)

    Again, I would much appreciate if you can provide an example of the lookup field in a custom form width dialog window, like the documention is showing the text fields.

    Plugin Author alexacrm

    (@alexacrm)

    At the moment we do not have any examples of the lookup field in custom forms, this functionality is present in the Power Apps forms in the premium plugin.

    lookup.twig is present in integration-cds-premium plugin as well (see the path above)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Forms – How add a lookup field’ is closed to new replies.