Title: Custom &#8220;edit&#8221; form
Last modified: February 4, 2019

---

# Custom “edit” form

 *  Resolved [graham6117](https://wordpress.org/support/users/graham6117/)
 * (@graham6117)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-edit-form/)
 * Hi, hopefully a simple one. I am looking for an example of how to build a custom“
   edit” form. The following works perfectly on my site:
 * [msdyncrm_twig]
    {% form entity=”contact” name=”WordPress Example Form” mode=”
   edit” record=currentrecord %}{% endform %} [/msdyncrm_twig]
 * But I need to customise it. I am using a custom “create” form elsewhere, but 
   using similar code I am unable to get it to work in “edit” mode.
 * [msdyncrm_twig]
    {% form entity=”contact” mode=”edit” record=currentrecord required
   =[“firstname”, “lastname”, “emailaddress1″] %} <form method=”POST”> <div class
   =”newsletter__form–field”> <label for=”firstname”>First name</label> <input name
   =”firstname” required=”” type=”text” /> </div> {% endform %} [/msdyncrm_twig]
 * If I try to access {{ record[‘firstname’].value }}, nothing happens.
 * Has anyone got any example code for a simple edit form? Thamk you.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [alexacrm](https://wordpress.org/support/users/alexacrm/)
 * (@alexacrm)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-edit-form/#post-11167373)
 * Hi [@graham6117](https://wordpress.org/support/users/graham6117/)
 * firstly, does the form renders correctly with the existing values?
 * Secondly. can you elaborate on
 * > If I try to access {{ record[‘firstname’].value }}, nothing happens.
 * Trying to access where? On a bound page itself it should be `{{ currentrecord.
   firstname }}`.
 * Thanks
    George
 *  Thread Starter [graham6117](https://wordpress.org/support/users/graham6117/)
 * (@graham6117)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-edit-form/#post-11169678)
 * Ah, that what I was doing wrong! I appreciate the response.
    -  This reply was modified 7 years, 6 months ago by [graham6117](https://wordpress.org/support/users/graham6117/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom “edit” form’ is closed to new replies.

 * ![](https://ps.w.org/integration-dynamics/assets/icon-256x256.png?rev=1589904)
 * [Dynamics 365 Integration](https://wordpress.org/plugins/integration-dynamics/)
 * [Support Threads](https://wordpress.org/support/plugin/integration-dynamics/)
 * [Active Topics](https://wordpress.org/support/plugin/integration-dynamics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/integration-dynamics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/integration-dynamics/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [graham6117](https://wordpress.org/support/users/graham6117/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/custom-edit-form/#post-11169678)
 * Status: resolved