2

Can I use the Panels module to layout a custom form?

I've created a custom form and I'm loading it in a menu callback using a function like this:

function _MODULE_menu_callback_function() {
  return drupal_get_form('_my_custom_form');
}

My ultimate goal is to use the Panels UI to rearrange the form fields into different panes so that I can easily mix in other elements.

I tried to use Page Manager: Existing Pages to accomplish this, but it simply brings the form in as a whole. I cannot break the fields apart into different panes using this module.

Is this possible with Panels?

1 Answer 1

0

You need to create fieldable entity type to make form as you wish and make your custom form by adding fields to it. Than this fields will accessible in page manager UI.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.