Need to add liquid template for rendering the button which is set in entity form through web template i am not able to render the button which i have set in entity form. So, please help me out
*This post is locked for comments
It can be possible while redirecting a web page of on successful display field in entity form.
this reference is showing that CRM form scripting is not working in Portal rendering:
community.adxstudio.com/.../crm-entity-form-feature-matrix
On the Entity form there is a Custom JavaScript field where you can put in your own modification via jQuery:
community.adxstudio.com/.../custom-javascript
with a bit of trial and error you should be able to get the web resource control and create the required button via jQuery.
i've done this by JS.
1. I created an empty(1x1px) picture.
2. I made a web-resource on a form and chose this picture.
3. On needed event (on form load for example) i place js witch call function:
function toButton(text, WebResource, width, eventName) { var ctrl = Xrm.Page.getControl(WebResource).getObject(); if (ctrl) { var Btn = document.createElement("input"); Btn.type = "button"; Btn.value = text; Btn.style.width = width; Btn.addEventListener('click', eventName); ctrl.parentNode.replaceChild(Btn, ctrl); } }
You can modify it to make any style of button.
Can you show us the liquid part of your entity form where you defined the button?
Yes but after adding style sheet of header and footer.....
Button on a form?
Do you need something like this:
??
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,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156