Spaces:
Running
Running
<html> | |
<head> | |
<script src="https://unpkg.com/@flatfile/javascript@^0.3.1/dist/index.js"></script> | |
<script src="./blueprint.js"></script> | |
<script> | |
window.onload = function() { | |
FlatFileJavaScript.startFlatfile({ | |
publishableKey: "pk_98a7c9bd2ab84a68a6575ae4e5ddd30c", | |
sheet: blueprint, | |
onSubmit: async ({ sheet }) => { | |
const data = await sheet.allData() | |
console.log('onSubmit', data) | |
}, | |
spaceBody: { | |
namespace: "portal", | |
}, | |
}) | |
} | |
</script> | |
</head> | |
</html> |