Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 672561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:29:55+00:00 2026-05-14T00:29:55+00:00

About to create a form using Zend Form, all the form elements should have

  • 0

About to create a form using Zend Form, all the form elements should have a checkbox before it, and depending on the state of checkbox the element is submitted(if checkbox clicked it will be submitted othervice not)

[x] Label [-------------]
[x] Label [-------------]

and the confusing part is how to deal with it using the zend form. The thing comes to my mind is to create a custom decorator , but have a feeling it won’t really help. 2 -create a custom form element(will have to look at creating custom elements=)), anyway I would appreciate any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:29:55+00:00Added an answer on May 14, 2026 at 12:29 am

    If I understand correctly, what you are looking for is a compound element and indeed you will have to use a custom decorator or form helper for this. This is somewhat difficult to explain in a few lines, thus I’m pointing you to some articles to shed some light:

    • Compound Elements with Zend_Form
    • The simplest Zend_Form decorator
    • From the inside-out: How to layer decorators
    • Rendering Zend_Form decorators individually
    • Creating composite elements

    I don’t think it will be possible to have them not submit when the checkbox is empty though, because that’s not how forms work in HTML in general. You’d either have to remove them with JavaScript when the onSubmit event is triggered, e.g. the submit button is clicked or check on the server-side if the checkbox is checked and then process the text input accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All I have built a windows form application using VS 2005 Standard edition which
When I create a form to send data about new message: <% using (Html.BeginForm())
I am confused about how to make a Form visible. When we create a
I am about to create a simple demo in flash where I have 3
Does anybody know how one would go about looping through all the elements in
I'm using the Zend Framework and I'm about to hack up some of my
I have a form that is using form_tag and not sure how to use
using asp.net, sql server 2008, winserver2003 we have about 10 tables with about 20
I have a application built using Zend Framework. I have decided to go with
i want to create login form using sqlite in iphone view based application please

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.