Skip to main content
improved formatting while review
Source Link
John-M
  • 5.9k
  • 3
  • 19
  • 36

I think you are almost there except that you have used assignment operator which will always return TRUE always.

Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

I think you are almost there except that you have used assignment operator which will return TRUE always.

Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

I think you are almost there except that you have used assignment operator which will always return TRUE.

Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

I think you are almost there except that you have used assignment operator which will return TRUETRUE always. 

Instead you have to use comparison '==''==' or '===''===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

I think you are almost there except that you have used assignment operator which will return TRUE always. Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"

I think you are almost there except that you have used assignment operator which will return TRUE always. 

Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"
Source Link
Darshit
  • 61
  • 1
  • 1

I think you are almost there except that you have used assignment operator which will return TRUE always. Instead you have to use comparison '==' or '===' operators.

update in below line

EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"