Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the import issue of registration form #712

Open
YuchiWang621 opened this issue Jan 26, 2021 · 3 comments
Open

the import issue of registration form #712

YuchiWang621 opened this issue Jan 26, 2021 · 3 comments
Assignees
Labels

Comments

@YuchiWang621
Copy link

Describe the bug
I exported the registration form in order to add more options to some elements (for over 100 options) in its json format with python. (I have added at least one option in each field slug before exporting.) After that, I imported the edited json file back and tried to edit some wordings in the form with Admin, the form type turned into "Contact form" and the form type couldn't be changed anymore. Thus, the form would fail to appear in the front end. This is urgent, please help

To Reproduce
Steps to reproduce the behavior:

  1. Create a registration form
  2. add at least one option to each field slug with the "dropdown list" field type
  3. Export the form and add 100+ labels and values in some field slugs with python
  4. Save the edit
  5. Import the edited json file back to the admin
  6. Edit some wordings to title of the new registration form
@jnfDev
Copy link
Contributor

jnfDev commented Jan 26, 2021

Hi @YuchiWang621,
Did you verify if the JSON structure after edits it with python? Need to be the same structure as the original JSON. Can you please provide me with two samples of the same JSON before and after your updating it?.

I will be waiting for your reply. 😉

@YuchiWang621
Copy link
Author

@jnfDev I did. This is the website I used for verifying https://jsonformatter.curiousconcept.com/# .
These are the samples. https://drive.google.com/drive/folders/1cqElAMalbM6PH_a1wHRrxt4WNTbfeA1T?usp=sharing
The only edited area between "test_before" and "test_after" is ['form_fields']['33960bd55b']['options']. I updated 166 options in this.

Thank you so much for helping!

@YuchiWang621
Copy link
Author

Hi @YuchiWang621,
Did you verify if the JSON structure after edits it with python? Need to be the same structure as the original JSON. Can you please provide me with two samples of the same JSON before and after your updating it?.

I will be waiting for your reply. 😉

@jnfDev I did. This is the website I used for verifying https://jsonformatter.curiousconcept.com/# .
These are the samples. https://drive.google.com/drive/folders/1cqElAMalbM6PH_a1wHRrxt4WNTbfeA1T?usp=sharing
The only edited area between "test_before" and "test_after" is ['form_fields']['33960bd55b']['options']. I updated 166 options in this.

Thank you so much for helping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants