Posted 4 March 2020, 3:51 am EST
Hello,
We are using spreadjs and facing issue with cell value validation. we need to compare cell value to check it’s empty and compare with other value after that highlight that specific cell and need to display error message on button click, So can you please provide me example that how can we implement it.
Below is example that i have implemented and greater then numeric value condition is working but empty cell value and compare cell value validation is not work.
spread.options.highlightInvalidData = true;
var dv = GC.Spread.Sheets.DataValidation.createFormulaValidator("A1>0");
dv.showInputMessage(true);
dv.inputMessage("Enter a value greater than 0 in A1.");
dv.inputTitle("Tip");
dv.showErrorMessage(true);
dv.errorMessage("Incorrect Value");
spread.getActiveSheet().setDataValidator(1, 1, dv);
Thank you
