web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

on-change custom field action

(0) ShareShare
ReportReport
Posted on by 55

Hi 
i have two custom fields 

check in-date :

check out-date :

if i enter check in date like : 01/15/2018

i want to add 10days to check in date and display the result in checkout date

may i know how to apply on-change method to check in date field.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    You can refer this thread:

    community.dynamics.com/.../263117

    Hope this helps

  • BadrinathB Profile Picture
    970 on at
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Srini,

    Try with this -

            function onChangeCheckIn() {          
                var checkidDate = Xrm.Page.getAttribute("new_checkin").getValue(); // Replace checkin Field Name
                var CheckoutDate = new Date(checkidDate);
                CheckoutDate.setDate(newdate.getDate() + 10);
                Xrm.Page.getAttribute("new_checkout").setValue(CheckoutDate); // Replace checkout  Field Name
            }


  • Srinivasareddy Sagili Profile Picture
    55 on at

    Hi Goutam Das

    thank you very much for your reply

    i need some more confirmation

    new_checkin : may i know which data type for this  ?

    new_checkout : may i know which data type for this  ?

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Srinivas,

    should be datetime data type.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans