hchiam / html-template-generator

Generate form HTML with a visual UI
https://html-template-generator.surge.sh
MIT License
4 stars 0 forks source link

enable import from requirements notes #15

Closed hchiam closed 3 years ago

hchiam commented 3 years ago

(This is the opposite of the export issue #14)

Problem/Need:

The HTML export is fine for communicating with devs, but what about for non-devs to communicate with each other or just to remind themselves? Otherwise they'd just use something they're more familiar with, like excel files.

Suggestions:

hchiam commented 3 years ago

for step 1: recreate the .remove-from-final-output parts too

hchiam commented 3 years ago

https://bossanova.uk/jspreadsheet/v4/examples/import-data

hchiam commented 3 years ago

I think copy-pasting from an existing excel file into the in-browser table is good enough, so no need to export back to a new excel file.

hchiam commented 3 years ago

TODO:

hchiam commented 3 years ago

There's now an optional extraData parameter of copyTemplate passed to useExtraData. I plan to fill in the TODO comment that's currently there.

hchiam commented 3 years ago

it seems to not work on the live site, probably due to a timing issue

hchiam commented 3 years ago

turns out the surge command output was removing empty id=""s in the html templates