Is there some function like program rule for dataset?

You’re welcome, thank you!

Yes, that’s not available in the data entry app.

However, it’s possible to use JavaScript … here’s a quick demonstration only to illustrate the point:

.