forked from AOT-Technologies/forms-flow-ai-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathembed.html
41 lines (37 loc) · 1.45 KB
/
embed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<article class="docs-article">
<section class="docs-section" id="rpa">
<div>
<h1>Form embedding</h1><hr><br>
<p>Form embedding will help you to convert your form into a component and to use the form in any website
that you wish. And you can use this form component in any javascript frameworks.</p>
<p>Below steps will describes how to use the form embedding option</p>
<ol>
<li>Install npm package formsflow-wc</li>
<img src="./assets/images/formembed.png">
<li>Import 'formsflow-wc'</li>
<li>Use component <formsflow-wc url="" ></formsflow-wc>
</li>
<pre>
<code class="hljs">
import './App.css';
import 'formsflow-wc';
function App() {
return (
<div className="App" >
<formsflow-wc url=""></formsflow-wc>
</div>
);
}
export default App;
</code>
</pre>
</ol>
<p>
Here 'formsflow-wc' is your webcomponent.There is an attribute called ‘url’ inside the component so you
can pass your form url inside that attribute. This is only applicable for anonymous forms . You are not
able to use authorized forms in this component.
</p>
</div>
</section>
</article>
<script>hljs.initHighlighting();</script>