Adds form() and prefill() for text inputs.