简体   繁体   English

从excel电子表格导入高级表单字段

[英]advanced form field importing from an excel spreadsheet

I have a .xlsx Microsoft Excel spreadsheet containing thousands of rows, each representing a form field. 我有一个.xlsx Microsoft Excel电子表格,其中包含数千行,每行代表一个表单字段。 I need to reconstruct the entire form so that it may be filled out by users and their responses submitted to a MySQL database. 我需要重建整个表单,以便用户可以填写表单并将他们的响应提交到MySQL数据库。

It seems impractical to create a form using for example WordPress plugin NinjaForm, manually creating thousands of fields through the WordPress dashboard. 使用WordPress插件NinjaForm创建表单,通过WordPress仪表板手动创建数千个字段,似乎不切实际。 They have functionality for importing, but it seems to be designed only for importing forms that were exported using the ninjaforms UI. 它们具有导入功能,但似乎仅设计用于导入使用ninjaforms UI导出的表单。 The syntax seems complex and undocumented publicly. 语法似乎很复杂,并且没有公开记录。

I'm not married to the idea of using NinjaForms, but it seems plausible to find some kind of forms creation plugin or software that allows form field importation. 我并不喜欢使用NinjaForms的想法,但是找到某种形式的表单创建插件或允许表单字段导入的软件似乎是可行的。

Here's an example of how my data is formatted http://i.stack.imgur.com/PRkz2.jpg 这是一个有关如何格式化我的数据的示例http://i.stack.imgur.com/PRkz2.jpg

First export to CSV then try this two plugins : 首先导出为CSV,然后尝试以下两个插件:

I use it with a custom post page and this plugin : https://wordpress.org/plugins/advanced-custom-fields/ 我在自定义帖子页面和此插件中使用它: https : //wordpress.org/plugins/advanced-custom-fields/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM