Conditional COL["editable"] = true/false

QuestionsConditional COL["editable"] = true/false
Tim Moore asked 6 years ago

I am not sure if this is possible, but I would like to change editable status on a $COL[“editable”] to false if it already contains data. I have seen the examples on how to disable a row, but I need to disable a $COL if it has data in it (COL <> “”). Any assistance on this would be greatly appreciated as my java skills are almost non-existent.

1 Answers
Tim Moore answered 6 years ago

I did not realize “readonly” did the same thing, but I guess I should have.

this did the trick.

$col[“editrules”] = array(“required”=>true, “readonly”=>true, “readonly-when”=>array(“!=”,””));

Your Answer

8 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?