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

  • Home
  • SEARCH
  • 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 7746159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:12:25+00:00 2026-06-01T10:12:25+00:00

Right now I have a Drupal site where I’m integrating a custom front-end interface

  • 0

Right now I have a Drupal site where I’m integrating a custom front-end interface for creating a certain type of node. This custom ‘interface’ area is being embedded at the top of the node-creation page.

The CCK fields for the node are grouped together using the Fieldgroup module which is wrapping them into a . I am using the following code to pull the Fieldgroup into a JQuery dialog when the user presses a button:

var options = {
    dialogClass: 'customDialog',
    autoOpen: false,
    draggable: false,
    modal: true,
    resizable: false,
    height: 'auto',
    width: 'auto',
    title: 'Configure Options',
    show: 'fade',
    hide: 'fade',
    buttons: {
            'Update': function(){               
                $(this).dialog('close');
        }
    }
 };

// open windows
$("#inputButton").click(function() {
    var dlg = $('.group_input').dialog(options);
    dlg.css('min-width', '500px').css('max-height', '300px');
    dlg.dialog('open'); 
});

Everything works a-OK and loads up in the dialog; however, when the user presses the ‘Update’ button to close the dialog, the CCK fields are not being updated with the new values.

The same thing happens if I load a single field into the dialog, so I know it’s not a Fieldgroup module issue. I have searched for days trying to resolve this issue, and it seems no one else has come across this problem. Any input would be much appreciated.

EDIT: I have a solution and will post it once the 8 hour restriction passes 🙁

  • 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-06-01T10:12:27+00:00Added an answer on June 1, 2026 at 10:12 am

    OK, so I finally figured it out. For anyone interested in loading a node’s CCK fields into a JQuery dialog, it will only update the form values if you append the dialog’s elements back to the form. This appears to happen because the JQuery dialog actually destroys the loaded content when it is closed.

    The correct implementation is as follows:

    var options = {
        dialogClass: 'customDialog',
        autoOpen: false,
        draggable: false,
        modal: true,
        resizable: false,
        height: 'auto',
        width: 'auto',
        title: 'Configure Options',
        show: 'fade',
        hide: 'fade',
        buttons: {
          'Update': function(){               
             $(this).dialog('close');
          }
        },
        **close: function(event, ui){
           $('#the-form-name').append($(this));
        }**
     };
    
    // open windows
    $("#inputButton").click(function() {
        var dlg = $('.group_input').dialog(options);
        dlg.css('min-width', '500px').css('max-height', '300px');
        dlg.dialog('open'); 
    });
    

    I hope this helps someone stuck with the same issue!

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

Sidebar

Related Questions

I have a drupal site that I am creating right now. I have 3
I am working on developing a drupal site right now. I have created a
I have a Drupal set up with CKEditor and CCK, with a custom node
Good day! I right now have a function the drags an element from a
Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as
Right now I have an SSIS package that runs every morning and gives me
Right now I have the following in my .vimrc : au BufWritePost *.c,*.cpp,*.h !ctags
Right now I have a few new applications being developed against an Oracle Database,
Right now I have a JSP page that allows to sort some items, when
Right now I have a table called Campaigns that has many Hits, if I

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.