Can we set default items without using url?
See original GitHub issueHello,
We are trying to set json data without using url but its not working.
const content = [
{
"id": "C68B673B-3948-4D62-AF6D-5320CAB4DDB7",
"element": "TextInput",
"text": "Text Input",
"required": true,
"canHaveAnswer": true,
"field_name": "text_input_EEA6F5DA-5C2C-43D3-AB62-62385E3925D9",
"label": "<div>Name</div>\n"
},
{
"id": "6DAF1E95-44F6-4E5B-ABDD-D9A6BCA2C08A",
"element": "TextInput",
"text": "Text Input",
"required": true,
"canHaveAnswer": true,
"field_name": "text_input_C5305462-9704-4E77-BFAB-A43C14AB2B8E",
"label": "<div>Email</div>\n"
}
];
<ReactFormBuilder variables={variables} data={content} />
This is working fine:-
<ReactFormBuilder variables={variables} url="http://localhost/temp.json" />
Can you please help me out. Thank you.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to Remove, Change, and Set Default Apps on Android
Here's everything you should know about setting and adjusting default apps on Android, including changing how links open.
Read more >How can I set the default value for an HTML <select> element?
Save this answer. Show activity on this post. Provide "selected" keyword inside the option tag, which you want to appear by default in...
Read more >Set default values for fields or controls - Microsoft Support
This article explains how to set a default value for a table field or for a control on a form in an Access...
Read more >Set default collections for products in multiple categories using ...
This screencast talks a little about managing products that appear in multiple collections in your ... Your browser can 't play this video....
Read more >Browser default actions - The Modern JavaScript Tutorial
Technically, by preventing default actions and adding JavaScript we can customize the behavior of any elements. For instance, we can make a link ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you still have issue then I will reopen it
Thank you for answer, I’m trying to install package like this ->
npm install --save https://github.com/Kiho/react-form-builder
It does not work can you please update npm so we reinstall and check it.