![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
|
HTML Form in Sigil / Epub
Hi all
Seems like Sigil doesn't like me trying to add an html <form> section with radio buttons within an html file. Could anyone clarify more broadly what the constraints are with interactivity and Sigil / epub format? Many thanks! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> |
![]() |
![]() |
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
FYI - Sigil does have User preference settings to enable and disable javascript in Sigil. So if you go the javascript in epub3 route, make sure to enable javascript in the Sigil preferences.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And possibly allow local storage? I'm admittedly weak on what interactivity/javascript might require to allow something like this to work.
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Before testing make sure to select Preferences > General Settings > Security, check both options and restart Sigil. Last edited by Doitsu; 04-28-2020 at 01:25 PM. |
|
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2020
Device: none
|
Many thanks all for your helpful responses
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
endnotes in epub with Sigil, multiple html | BMaloney | Sigil | 9 | 10-10-2019 04:34 PM |
how to put EPUB articles together to form new doc | calibrecali | ePub | 1 | 07-23-2013 02:27 PM |
html to epub via Sigil or Calibre? | Bigo2 | Calibre | 2 | 07-01-2012 02:07 AM |
Smooth workflow from HTML to Sigil epub | useroo | Sigil | 1 | 07-04-2011 12:31 AM |