Jump to content

Automatic text field creator.


pat_codes

Recommended Posts

Automatic text field creator.

 

OK, so im a little bit new to php and I found that the best way to learn is to ask questions.

 

Ok, so im in need of building this feature. The idea is that a user could add another text field just by clicking a link.

 

He would add information into the textbox, and click the submit button. After he hits the submit button it would add the information into a tinymce WYSIWYG editor.

 

The only thing im having trouble with is how to build the feature that will add another text box..

 

Any information on where I  can learn how to do this would be awesome.

 

Check below for some example pictures.

 

 

2z5obbp.png

2gwyvdc.png

2dv5wsl.png

330h06d.png

 

Link to comment
Share on other sites

Is the text in these inputs ('Hello#') the name for the new field or is this the information that will populate the new field?

 

In any case, unless you want to do a POST (click a 'Submit' button and refresh the page) it looks like you're looking for jQuery, which will allow you to manipulate DOM elements on the fly.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.