Inserting text into form fields.
I wish to insert text into a form field. Is there a filter I can use to alter the text entered in a form field when the page loads?
E.G. If for example, you had a custom field in a post, and you wanted the field to be populated with a random text string on page load, how could you do that. I actually want to populate it with the result of a function, but that is beside the point. It is important that the user can delete and retype if they wish.
- The topic ‘Inserting text into form fields.’ is closed to new replies.