the function that generates the form entry