title: Moodle Custom Form updating
body: <p>I have created custom form in Moodle and inserted the data into moodle database.  Also i used most of the field  in form as  autocomplete like below eg</p>
  <p><code>$mform-&gt;addElement('autocomplete', 'SBName', get_string('searcharea', 'search'), $sbnames, $options);</code></p>
  <p>Then, I need to update this form . I got record from db as a array, Then i need to add db values in my update form to proceed further.</p>
  <p>Here I could not populate the  values in edit form for the field of autocomplete $mform-&gt;addElement('autocomplete.</p>
  <p>Kindly help on this to apply the  values in edit form.</p>
  <p>Please let me know Is there any way to do this in moodle</p>