question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can we set default items without using url?

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Kihocommented, Jan 9, 2019

If you still have issue then I will reopen it

0reactions
mitulmarsoniacommented, Jan 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found