On load of the section how to set focus on the rich text editor field of the form rather than the first action field ?
I want (mouse cursor) to set the focus on the body of the email which is the correspondence rule rather than pointing on the first field of the section.
I am able to change the focus from first field to the another filed using the below script in the UserWorkFrom. <script> setTimeout(function(){ document.querySelectorAll('[data-test-id="MY"]')[0].focus(); }, 1000); </script>
but how to set focus on the Richtexteditor. I tried the above script but no luck.
------------------------------------------ another approach which I've been following is
I've created a when rule which checks the length of "pyToRecipient" (page list property), if this page list has at least one record then result is true, so using this when rule i'm calling the "non-auto generated" html section inside the correspondence rule by applying this when condition as visibility .
I've added this container inside the source of the correspondence
<div id="messageInput" contenteditable="true" </div>
I want (mouse cursor) to set the focus on the body of the email which is the correspondence rule rather than pointing on the first field of the section.
I am able to change the focus from first field to the another filed using the below script in the UserWorkFrom. <script> setTimeout(function(){ document.querySelectorAll('[data-test-id="MY"]')[0].focus(); }, 1000); </script>
but how to set focus on the Richtexteditor. I tried the above script but no luck.
------------------------------------------ another approach which I've been following is
I've created a when rule which checks the length of "pyToRecipient" (page list property), if this page list has at least one record then result is true, so using this when rule i'm calling the "non-auto generated" html section inside the correspondence rule by applying this when condition as visibility .
I've added this container inside the source of the correspondence
<div id="messageInput" contenteditable="true" </div>
could anyone please help.
Thanks in advance
Regards, Manoj
***Edited by Moderator Marije to change type from General to Product, added Product details and Capability tags****