Hi,

can anyone tell me if it is possible to use "pre-built option list" when the form builder UI is enabled? I can't find anything that allows me to do that when the form builder UI is enabled. Basically right now I have to disable the form builder UI first so that I can use the webform module to have pre-build option lists and then enable it again. But sometime the whole select field created this way just disappeared from the form after the form builder is enabled.

Thank you.

Comments

quicksketch’s picture

Thanks, good point. Form Builder doesn't yet support the pre-built list options, but it should be possible to support.

DrupalDan’s picture

Hi quicksketch, thanks for your response. I'm looking forward to it!

stijndm’s picture

Hi quicksketch,

How easy/difficult would this be? Could you maybe point me in the right direction. If the project allows for it I might be able to provide a patch.

heyyo’s picture

Issue summary: View changes

I also need this feature. As requested previously, could we get some guidelines on how and where in the code we should add it.
Thanks.

quicksketch’s picture

I think this would need to be added to form_builder_webform_property_select_options_form() in modules/webform_form_builder.components.inc. I haven't had an opportunity to look into it.

bisonbleu’s picture

sk2013’s picture

Any update on this issue please?

malc0mn’s picture

Status: Active » Needs review
StatusFileSize
new4.32 KB

All,

I really needed this functionality to be able to solve a big problem concerning webforms and select lists.

I have created a patch which you can find in attach, that will bring up the 'predefined option lists' to the form builder UI.
As I've never used the form_builder API before I'm not at all sure this is the right way to do it. Far from it probably, but as it might help some of you out, decided to post it anyway.

I made the patch on the 1.4 version I'm using, so not as I'm supposed to agains the 7.x-1.x-dev branch. Too little time I'm afraid :-(

Be sure to test it properly before using as it is merely a quick fix for me so that the project can move on...

Cheers,

mlc.

malc0mn’s picture

StatusFileSize
new4.32 KB

Whoa, that previous patch broke the editing form. Hadn't noticed that the 'options' tab was gone. This one fixes that issue.

mlc.

dagomar’s picture

The patch in #9 didn't work for me, so I rolled a new one.

dagomar’s picture

Version: 7.x-1.x-dev » 7.x-1.5

Darn,

I just realised I did this patch against the 1.5 version, that's what I'm using right now in production. I have changed the version to reflect this, I guess I should do another patch against dev, although that may not be necessary. I have no time today and I probably will forget, so if anyone can test against dev, please feel free to update the version again.

dagomar’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
StatusFileSize
new3.84 KB

Hi!

I have created a new patch that works with the latest dev. Things moved around quite a bit, but I think it looks pretty stable. Please review!

muschpusch’s picture

Status: Needs review » Reviewed & tested by the community

Works great and the code looks good.

grahamc’s picture

Existing patch didn't work cleanly with git apply, so re-rolled against 7.x-1.20.

torotil’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Needs a re-roll against 7.x-2.x.

bisonbleu’s picture

Re-rolled patch in #14 against 7.x-2.x.

bisonbleu’s picture

Status: Patch (to be ported) » Needs review
torotil’s picture

Status: Needs review » Needs work

It seems to be still behind 7.x-2.x. Sorry.