Announcements
No record found.
I want to fire some actions after form is saved only first time using javascript. Not in every time when form will save.
fire some actions
form is saved
first time
Please suggest if there is some event or other solution .
*This post is locked for comments
When you say, first time, means the moment at record creation ?
If it is, you can create a plugin step at PostCreate moment to perform your desired actions on the record.
If your desired actions are intended exclusively for the form, like show or hide some fields if are the first time, you can use some field value to validate this rule.
Create a js code on onLoad for this form to check the value of this field.
On the onSave event you can set some another value to this field. After the first time, your conditions for this field will be not match.
If this solves, please "Like" and mark as "Verified Answer"
If you mean "first time" like on create, then simply check current form type onSave event.
msdn.microsoft.com/.../gg327828.aspx
if(Xrm.Page.ui.getFormType()==1) //1 - create
{
//run your code
}
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Varsha deshpande 5
NeerajPawar 2
jlattimer 2