View Single Post
Old 04-28-2020, 09:07 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil "likes" form code just fine. You just need to make sure it adheres to the more strict xhtml rules and not the lazier html (Those are EPUB requirements, not Sigil).

Also, although it will render fine in Preview, form code is not likely to validate (nor be at all useful) in EPUB2.

The following code renders (and validates) fine for me in an EPUB3.

Code:
<form>
  <input type="radio" id="male" name="gender" value="male"/>
  <label for="male">Male</label><br/>
  <input type="radio" id="female" name="gender" value="female"/>
  <label for="female">Female</label><br/>
  <input type="radio" id="other" name="gender" value="other"/>
  <label for="other">Other</label>
</form>
Hooking it up to javascript for functionality is entirely up to you. Interactive ebooks is not at all my forte (or interest). Nor is it a Sigil topic. It's an EPUB topic
DiapDealer is offline   Reply With Quote