Tip: How to auto populate content of description field
This tip will help you add value to the description field by submitting a request form in the guide theme.
You can use the code when you want to prefill the description or can simply put the code under the condition where you can auto-populate the description field when certain conditions are met.
Use the below line of code to set the value for the description field.
tinymce.get("request_description").setContent("<p>Test</p>”);
You can also take a look at this post where the code was originally shared. Let us know if you face any issues.
Thanks
Please sign in to leave a comment.
0 Comments