Skip to main content
added 99 characters in body
Source Link
Raj Kumar
  • 5.9k
  • 2
  • 15
  • 32

You can try following in your command js.

Extensions.YourExnName.prototype.isAvailable = function YourExnName$isAvailable(target)
{

//check here for publication
    return true/false;;
};

Extensions.YourExnName.prototype.isEnabled = function YourExnName$isEnabled(target) {
//check here for publication
    return true/false;
};
  1. Validation can be done using javaScript also in your onclick or other events, did you try?

You can try following in your command js.

Extensions.YourExnName.prototype.isAvailable = function YourExnName$isAvailable(target)
{

//check here for publication
    return true/false;;
};

Extensions.YourExnName.prototype.isEnabled = function YourExnName$isEnabled(target) {
//check here for publication
    return true/false;
};

You can try following in your command js.

Extensions.YourExnName.prototype.isAvailable = function YourExnName$isAvailable(target)
{

//check here for publication
    return true/false;;
};

Extensions.YourExnName.prototype.isEnabled = function YourExnName$isEnabled(target) {
//check here for publication
    return true/false;
};
  1. Validation can be done using javaScript also in your onclick or other events, did you try?
Source Link
Raj Kumar
  • 5.9k
  • 2
  • 15
  • 32

You can try following in your command js.

Extensions.YourExnName.prototype.isAvailable = function YourExnName$isAvailable(target)
{

//check here for publication
    return true/false;;
};

Extensions.YourExnName.prototype.isEnabled = function YourExnName$isEnabled(target) {
//check here for publication
    return true/false;
};