Hi,
Want to get control of the look up modal and the body using JQuery.
Please help me with this!!!
Regards,
Susritha.
Hi,
Want to get control of the look up modal and the body using JQuery.
Please help me with this!!!
Regards,
Susritha.
Hi Partner,
You could get it in your own environment by Jquery code and find more details.
In my case, there are 3 girds in my form so I will found 3 elements by $("table[role$='grid']") ), that is the reason we need to find the gird under the special DIV.
After you get the table element, you could add tr and td in it to add your custom records.
Regards,
Leo
Can you give more details about $("table[role$='grid']") ) under its Div.
Hi partner,
Thanks for your details.
The modal in portal form could be found by $("table[role$='grid']") under its Div.
And then you need to add your custom data into the table by its format.
Best Regards,
Leo
The required is to add records to the lookup modal based on the odata Query.
When I was trying with the Custom modal then I can able to get control of it and I can add records to the modal.
$('#myModal').find('.modal-body .table tbody').append('<tr data-id="' + data.value[i].knowledgearticleid + '" data-entity="knowledgearticle" data-name="' + data.value[i].title + '><td data-th="Select" aria-label="Select " tabindex="0" role="checkbox"> <span class="fa fa-fw"></span></td><td data-type="System.String" data-attribute="title" data-value="' + data.value[i].title + '" tabindex = "0" data-th="Title" aria-label="' + data.value[i].title + '" > ' + data.value[i].title + '</td ></tr>');
but not for the lookup modal in Entity form.
Please help me with this!!!
Hi Partner,
Could you kindly share more details about your requirement, why you need to get the lookup field by Jquery when opening the modal?
As we know we need to use $("#fieldname) to get field in portal form, and even though you opened the lookup modal, you could also get the lookup filed by this code.
And if you want to do actions on the lookup modal, you could find its ID or class name by F12 developer tools.
Best Regards,
Leo
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156