Hi petya,
I think that you can apply the IF function for this requirement. If the text is related to a data in a specific table, you can use the binded to data model, you can use the binded element. For example, I have binded customer group on CustTable to model.'Collection interest journal'.Customer.CustGroup:
IF(
OR(model.'Collection interest journal'.Customer.CustGroup="11",
model.'Collection interest journal'.Customer.CustGroup="12"),
NOT(model.'Collection interest journal'.Customer.AccountNumber=""),
model.'Collection interest journal'.Customer.VATNum<>"")
In the following example, I have created a validation formula that if customer group is 11 or 12 customer account number should not be empty and IF not the tax exempt number should be provided.
For more information about electronic reporting functions please check:
docs.microsoft.com/.../er-functions-logical-if
docs.microsoft.com/.../er-formula-language