I'm trying to build forms with this module that I will then export and use to create my own module.

Its webform integration allows me to create date, time, email, etc. fields that the "form builder example" doesn't easily allow.

Sorry if this is a dumb question, but is it possible to export a webform (not the functionality) as a FAPI array? Am I missing this? Or using this module in a way it wasn't intended?

Comments

quicksketch’s picture

Sorry if this is a dumb question, but is it possible to export a webform (not the functionality) as a FAPI array? Am I missing this? Or using this module in a way it wasn't intended?

You can't really export a Webform's special fields as a FormAPI array, because those elements don't globally exist outside of Webform. Webform provides special customized form elements including its date, time, grid, and email fields that can't be used by other modules, so there's not much value in being able to export them to a FormAPI array. If you're looking for a way of moving Webform's across sites, you may want to look into Node Export module, which exports nodes to PHP code so you can move them.

quicksketch’s picture

Status: Active » Closed (fixed)