Convert 'PATCH' form method attribute to hidden field.