Jump to content

Recommended Posts

Posted (edited)

So am digging deep into the world of module development. Exciting! PW makes it easy to quickly create form elements for use in Process Modules UI. I have searched the forums and looked at different modules but have not been able to find out if it is possible to wrap form elements in one InputfieldWrapper or InputfieldMarkup as shown in the attached screenshot (#2). I don't want the individual form elements within the wrapper/container to also have the collapsible panel wrapper which is what happens by default whenever you add an inputfield in a module (screenshot #1). The only wrapper I want is the outer one. Is this doable using the API or I'll need to fiddle with CSS or directly include the form elements myself? Hope this makes sense. Thanks.
 
What I am getting:
post-894-0-14005100-1375707711_thumb.png
 
 
What I would like:

post-894-0-27690400-1375705475_thumb.png

Edit

Possibly related

http://processwire.com/talk/topic/59-module-want-form-builder/?p=611

Edited by kongondo
Posted

I don't think it's possible.

To achieve your goal, you can make 'Your details' an InputfieldMarkup and add the lables / input fields yourself (HTML markup).

  • Like 1
Posted

"Selection: Male or Email"? That sounds... a bit strange.

:huh:  :rolleyes:

Hehe. I'm a strange guy ;) I knew that'd catch on...hehe. Nah, just a typo, in my haste to demo what I meant :D

Posted

Or....I could just implement the input fields in a Table, duh! Batcher does this (module) so does this excellent example (frontend - but can work in a module too) by Soma

post-894-0-68156100-1375817685_thumb.png

Who said tables were dead?!  O0  :P

  • Like 1

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
×
×
  • Create New...