Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Javascript button not triggering

$
0
0

Hi ALL,

I craeted a button on the command bar and put a javascript file beneath it, to trigger when the button is clicked. The code is below;

var submitReceipt = function (executionObj) {
			
            var formContext = executionObj.getFormContext();
			formContext.getAttribute("ntt_submittofinance").setValue(1);
			formContext.data.entity.save();
			formContext.data.refresh();
		};


I just want to set a value and then save the record. Nothing works at when the button is clicked. Please someone with experience should. Thanks in advance for the help.


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>