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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:33:20+00:00 2026-05-26T14:33:20+00:00

I need two editable items to be mutually exclusive, such that when an admin

  • 0

I need two editable items to be mutually exclusive, such that when an admin user goes in to the edit interface and edits one, the other becomes greyed out (and blanked out).

Let’s say I have something like this:

public sealed class MyPart : PartBase  
{
    [EditableTextBox]
    public string Text1 
    {
        get { return GetDetail(Names.Text1); }
        set { SetDetail(Names.Text1, value); }
    }

    [EditableTextBox]
    public string Text2
    {
        get { return GetDetail(Names.Text2); }
        set { SetDetail(Names.Text2, value); }
    }
}

In code, I can quite easily make these two text items mutually exclusive via the get/set functions, but how do I make them mutually exclusive in the N2 edit interface? Such that when the user types text into the Text1 box, the Text2 box becomes greyed out and read only and/or blanked out?

Is this achieved via a decoration/attribute in the code, or do I have to implement custom javascript?

If it is custom javascript, where and how do I plug my script into N2?

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-26T14:33:20+00:00Added an answer on May 26, 2026 at 2:33 pm

    Got an answer on the N2 forums here: http://n2cms.codeplex.com/discussions/277768

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

Sidebar

Related Questions

I need two or one (out) C# method that will take any datetime and
Two questions please: I need two foreign keys back to User, one for author
I need two methods one to encrypt and one to decrypt an xml file
Why do I need two of them? When I have to use one or
I have a form that has a group of 3 text_fields. I need two
For our api user we need two styles of authentication: authenticate the api-user (mobile-device,
I have some code where I need two separate required field validators for one
I need two consecutive div elements (with backgrounds) to be touching seamlessly, one below
I need two functions that take a string and the number of characters to
I need two conditional rules. Background: http://www.domain.com/.htaccess http://www.domain.com/index.php http://www.domain.com/admin/index.php I have both re-write rules:

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.