–°ustom text Field input.

  1. 2 years ago

    Hi, For my project, I need to create a form to enter the user's name.
    Is it possible to create and use a text box where the user can enter his text?
    Of course, using coding for that.

  2. Is there somebody?

  3. Angelo S

    7 Dec 2021 Administrator

    Hello Alex, of course you can. Just use a smart object to place some custom HTML and javascript code. You can save the entered value in localStorage.

  4. Thanks! Super!

  5. All good, but this method doesn't work for epub. Could you tell me where to look for a solution?

  6. Angelo S

    13 Dec 2021 Administrator

    It depends on the EPUB reader. Some of them, e.g. iBooks if I recall correctly, have problems showing the keyboard with form inputs. You could try using contenteditable attribute https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Editable_content

  7. Thanks! I’ll try, this will be interesting.

  8. Edited 2 years ago by Alex V

    Super!!! This method works perfectly! I'm starting to test!
    Block «text», coding editor of the text: <p contenteditable = "true">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
    It’s realy working.


or Sign Up to reply!