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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get last value for string control on modification

(0) ShareShare
ReportReport
Posted on by 1,967

Hi,

I have a string control that i added to the form -- it's not related to any datasource.
on the modify event handler I want to pick up the value before modification to compare it

so let's say from the lookup I choose this string: "String 1"  then on modification, if I choose String2 from the drop down, then in the modified event handler I want to check if the new chosen value is the same as the old one or not

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    The information about the previous value isn't stored anywhere - you need to save it by yourself to be able to later compare it with the current value. If it's worth doing, of course.

  • .. Profile Picture
    1,967 on at

    Hi Martin,

    Here's the case, I have 2 new string controls (not bound to a dataSource)

    On modified event Handler for one of them, I say if the value changes (control.valueStr()!=null), then make the other control empty..but the the thing is that in the lookup of the control you can still click on the same value and change ur mind..and in that case there is no need to make the other control empty

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans