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 6798961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:47:32+00:00 2026-05-26T18:47:32+00:00

I am expanding forms that are created with Zend_Dojo , for this i have

  • 0

I am expanding forms that are created with Zend_Dojo, for this i have a special task that i have hard time solving.

The form is for purchase and consist of two address groups: payerAddressGroup and deliveryAddressGroup.

These two groups are separated, so you can define two individual addresses. Although it occurs many times that the payerAddress is identical to the deliveryAddress.

So i wanted to resolve this task by adding a checkBox that could disable the deliveryAddressGroup, and by the value of the checkBox only use the payerAddress.

The form creation is made with extension of Zend_Dojo_Form.

I hope it makes sense!

Thanks.

I hope it makes sense?

  • 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-26T18:47:32+00:00Added an answer on May 26, 2026 at 6:47 pm

    You can watch the ‘checked’ property.

    dojo.ready(function() {
        dijit.byId('shipAsPayCheckBox').watch('checked', function(property, oldValue, newValue) {
            dojo.forEach(dijit.findWidgets(dojo.byId('fieldset-deliveryGroup')), function(w) {
                w.set('disabled', oldValue);
            });
        });
    });
    

    Your markup should look something like this.

    <input id="shipAsPayCheckBox" name="shipAsPayCheckBox" dojoType="dijit.form.CheckBox" value="1" type="checkbox" /> 
    <fieldset id="fieldset-deliveryGroup">
        <button dojoType="dijit.form.Button" type="button">Button</button>
        <label for="income1">
        U.S. Dollars
        </label>
        <input type="text" name="income1" id="income1" value="54775.53" dojoType="dijit.form.CurrencyTextBox" required="true" constraints="{fractional:true}" currency="USD" invalidMessage="Invalid amount.  Cents are required.">
    </fieldset>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the code I have: <body> <form id=form1 runat=server> <div> <asp:TextBox ID=txtInsertComments CssClass=expanding
I have a button on a form that is dynamically spawning a select list,
I have created a UserControl using a DevExpress XtraTreeList. Basically in this user control
I have a series of forms that I need a user to complete in
I create my forms via extending Zend_Form. And I use one Form for addAction()
Expanding on Jon Skeet's answer to This Previous Question . Skeet doesn't address the
My app is expanding, but the reqs dictate that there should be only one
I have a problem with expanding JTree nodes. I start when use selects a
Can I apply clipview to a vertical expanding Group? Time to time I'm appending
I'm having an issue with an expanding div tag that is nested within another

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.