Jump to content

Recommended Posts

Posted

@LostKobrakai I'd like to try your InputfieldPageDependentSelect module in Form Builder but I can't work out how to get the inputfield to show up.

I can use it for Page fields in the PW admin, but I can't select it for Page fields in Form Builder.

Normal page field: OK
normal-page.png

Form Builder page field: missing
fb-page.png

It's also not available for selection in the Form Builder module config field: "Inputfield types to use with Form Builder".

Can you see where I'm going wrong? Thanks.

PW v2.7.2, Form Builder v0.3.0

Posted

Sussed it after finding your discussion with Ryan in the Form Builder subforum.

$this->addHookAfter('ProcessFormBuilder::getInputfieldPageClasses', function($e) {
    $classes = $e->return;
    $classes[] = 'InputfieldPageDependentSelect';
    $e->return = $classes;
});

Would be good to include this in the readme seeing as it mentions that the inputfield is a good addition to Form Builder. Or the hook could be done in a dependent autoload module that comes included with InputfieldPageDependentSelect?

Thanks for making this cool module!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...