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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T01:08:56+00:00 2026-05-12T01:08:56+00:00

I have a custom list in SharePoint (specifically, MOSS 2007.) One field is a

  • 0

I have a custom list in SharePoint (specifically, MOSS 2007.) One field is a yes/no checkbox titled “Any defects?” Another field is “Closed by” and names the person who has closed the ticket.

If there are no defects then I want the ticket to be auto-closed. If there are, then the “Closed by” field ought to be filled in later on.

I figured I could set a calculated default value for “Closed by” like this:

=IF([Any defects?],"",[Me])

but SharePoint complains I have referenced a field. I suppose this makes sense; the default values fire when the new list item is first opened for entry and there are no values in any fields yet.

I understand it is possible to make a calculated field based on a column value but in that case the field cannot be edited later.

Does anyone have any advice how to achieve what I am trying to do?

Is it possible to have a “OnSubmit” type event that allows me to execute some code at the point the list item is saved?

Thank you.

  • 1 1 Answer
  • 1 View
  • 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-12T01:08:56+00:00Added an answer on May 12, 2026 at 1:08 am

    Include a content editor web part in the page (newform.aspx / editform.aspx) and use jQuery (or just plain javascript) to handle the setting of default values.

    Edit: some example code:

    In the lists newform.aspx, include a reference to jquery. If you look at the html code, you can see that each input tag gets an id based on the field’s GUID, and a title that’s set to the fields display name.

    now, using jquery we can get at these fields using the jQuery selector like this:

    By title:

    $("input[title='DISPLAYNAMEOFFIELD']"); 
    

    by id (if you know the field’s internal guid, the dashes will ahve to be replaced by underscores:

    // example field id, notice the guid and the underscores in the guid ctl00_m_g_054db6a0_0028_412d_bdc1_f2522ac3922e_ctl00_ctl04_ctl15_ctl00_ctl00_ctl04_ctl00_ctl00_TextField
    
    $("input[id*='GUID']"); //this will get all input elements of which the id contains the specified GUID, i.e. 1 element
    

    We wrap this in the ready() function of jQuery, so all calls will only be made when the document has fully loaded:

    $(document).ready(function(){
     // enter code here, will be executed immediately after page has been loaded
    }); 
    

    By combining these 2 we could now set your dropdown’s onchange event to the following

    $(document).ready(function(){
     $("input[title='DISPLAYNAMEOFFIELD']").change(function() 
     {
          //do something to other field here 
     });
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 241k
  • Answers 241k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer NSStrings are compared with isEqualToString. You're comparing pointers instead of… May 13, 2026 at 7:27 am
  • Editorial Team
    Editorial Team added an answer Make sure that the rewrite engine is turned on in… May 13, 2026 at 7:27 am
  • Editorial Team
    Editorial Team added an answer Oh, I've just found it. In D7 they implemented fields… May 13, 2026 at 7:27 am

Related Questions

I have created a custom list in a SharePoint site and generated a Visual
I have a custom list, and I've added a 'Page Image' field by clicking
I am working with a custom list I've built in SharePoint. I have a
I have a custom list on the top level site of my collection and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.