From ec7f86220084cda080ecc4dec7a47d658f40352a Mon Sep 17 00:00:00 2001 From: Somajit Dey Date: Fri, 20 Sep 2024 03:51:41 +0530 Subject: [PATCH] ready form URL --- 404.html | 38 ++++++++++++++++++++++++++++++++++++++ app/server.js | 1 + index.html | 7 +++++-- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..3bd2a1c --- /dev/null +++ b/404.html @@ -0,0 +1,38 @@ + + + + EasyForm + + + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+ +
+ + +
+ + + + + diff --git a/app/server.js b/app/server.js index 5e3dd9f..3d93ded 100644 --- a/app/server.js +++ b/app/server.js @@ -140,6 +140,7 @@ function startWorker() { document.getElementById("serverStatus").innerHTML = 'Live '; document.getElementById("formActionURL").innerHTML = `

HTML Form Action URL: ${getFrom}

`; + document.getElementById("readyForm").href = `./${btoa(getFrom).replace(/\+/g,'_').replace(/\//g,'-')}`; document.getElementById("testFormBtn").setAttribute("formaction", getFrom); spaShow("testForm"); } diff --git a/index.html b/index.html index 2ee8cec..04da7fe 100755 --- a/index.html +++ b/index.html @@ -45,8 +45,7 @@

Welcome to EasyForm

About

EasyForm gives you a free and easy, self-hosted form backend solution that runs in your browser! Just sign up and then embed the following HTML - form in your website. Therefrom, as long as this Tab is open in your browser, whenever your users submit the form in your website, your Inbox here - will be populated. You will also be notified via Telegram. + form in your website. You also get your own contact form URL that you can use if you don't have a website.


 <!-- Replace XXXXX with the form action URL given by this app upon sign up` -->
@@ -61,6 +60,9 @@ 

About

<!-- when the form is submitted, the server response will appear in this iframe, hidden from view --> <iframe name="hidden_iframe" src="about:blank" hidden></iframe>
+

As long as this Tab is open in your browser, whenever your users submit the form, your Inbox here will be populated. + You will also be notified via Telegram. +

@@ -105,6 +107,7 @@

Server

Test if everything is working properly with the following sample form (embed in your own website with ). You should get a Telegram message upon clicking Post! Your posted data should also be logged below.

+

You also get your own contact form URL.