简体   繁体   中英

Use Wufoo API fields in custom HTML Code

I need to use the Wufoo API, to get the field information and submit it back to Wufoo but I need to be able to build my own custom HTML - so it looks different.

Any ideas or examples, I've read loads of documentation on this but could do with seeing an example.

Cheers

Shane

are you trying to dynamically create the HTML using the Fields API? If so, follow these steps:

1) Pull the fields using the Fields API

2) Create a template for each Field Type. Be sure to set the name attribute of your form fields equal to the ID provided by the API

3) As you move through your fields, in the API, output your field templates.

Some things to be aware of:

  • We don't currently return the Section Breaks, so faithfully recreating every form is not possible. We're looking to the breaks soon, but have not done so yet.

  • If you're looking for static, pre-made HTML, you can use the HTML/CSS provided by the Code Manager as a template and move from there.

  • If you create your own form, you'll need to use the Entries POST API to submit the data to the appropriate user's account.

EDIT: Code examples live here: link text

最后,我只是将表格放在灯箱中,并不是我想要的那样,但最终看起来还不错。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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