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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:40:51+00:00 2026-05-16T22:40:51+00:00

I am creating a custom item editor, and am using the following blog post

  • 0

I am creating a custom item editor, and am using the following blog post as a reference for responding to the “save” event in the Content Editor, so that I do not need to create a second, confusing Save button for my users.

http://www.markvanaalst.com/sitecore/creating-a-item-editor/

I am able to save my values to the item, but the values in the normal Content tab are also being saved, overriding my values. I have confirmed this via Firebug. Is there a way to prevent this, or to ensure my save is always after the default save?

I have this in as a support ticket and on SDN as well, but wondering what the SO community can come up with.

Thanks!

  • 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-16T22:40:52+00:00Added an answer on May 16, 2026 at 10:40 pm

    Took a shot at an iframe-based solution, which uses an IFrame field to read and save the values being entered in my item editor. It needs to be cleaned up a bit, and feels like an interface hack, but it seems to be working at the moment.

    In my item editor:

    jQuery(function () {
        var parentScForm = window.parent.scForm;
        parentScForm.myItemEditor = window;
    });
    
    
    function myGetValue(field) {
        var values = [];
        jQuery('#myForm input[@name="' + field + '"]:checked').each(function () {
            values.push(jQuery(this).val());
        });
        var value = values.join('|');
        return value;
    }
    

    In my Iframe field:

    function scGetFrameValue() {
        var parentScForm = window.parent.scForm;
        if (typeof (parentScForm.myItemEditor) != "undefined") {
            if (typeof (parentScForm.myItemEditor.myGetValue) != "undefined") {
                return parentScForm.myItemEditor.myGetValue("myLists");
            }
        }
        return null;
    }
    

    In theory, I could have multiple fields on the item which are “delegated” to the item editor in this way — working with the content editor save rather than trying to fight against it. I’m a little uneasy about “hitchhiking” onto the scForm to communicate between my pages — might consult with our resident Javascript hacker on a better method.

    Any comments on the solution?

    EDIT: Blogged more about this solution

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

Sidebar

Related Questions

I am currently creating a custom e-commerce site (in php, but that's not really
Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged
In WPF, we are creating custom controls that inherit from button with completely drawn-from-scratch
I'm creating a custom Java Struts tag that is for building and formatting an
I am creating a custom WPF control that let's say for simplicity sake has
I'm creating a custom control, part of which is using the Graphics class to
I'm creating a custom edit control for my content authors to use in the
I am just learning about app.config in respect of creating custom sections. I have
I'm creating a custom drop down list with AJAX dropdownextender. Inside my drop panel
I'm creating some custom work items in TFS and the helptext field seems handy

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.