Rewrite the condition to convert some form methods attribute to hidden fields.