Validation of properties in the web version.

Hi everyone,

I have a VBScript script to validate a property of an object in M-Files. The property in question is used to store the name of the document creator, which is linked to a "Worker" object. This property can only be modified by certain users with specific roles within the company, as they are the only ones authorized to change the owner of the document.

The problem is the following: when trying to create documents with this property from the web interface or from iOS devices, an error appears as if the property value is being attempted to be changed, when in fact it is not.

This behavior does not occur when using the M-Files desktop client, where validation works perfectly.

It seems that on web or mobile platforms, the system is not handling the validation of this property correctly.

Has anyone experienced a similar problem or have any ideas on how to resolve it?

Thanks in advance for the help!

Parents
  • Could you consider an alternative approach:

    1. Restrict the Document Owner editing rights to the correct users / groups via the property definition permissions
    2. Fill the initial value of Document Owner with Property Calculator (condition "Document Owner is empty")

    This way you might be able to get rid of your VBScript altogether and the platform would take care that only those users who are allowed to change the property value can do it.

Reply
  • Could you consider an alternative approach:

    1. Restrict the Document Owner editing rights to the correct users / groups via the property definition permissions
    2. Fill the initial value of Document Owner with Property Calculator (condition "Document Owner is empty")

    This way you might be able to get rid of your VBScript altogether and the platform would take care that only those users who are allowed to change the property value can do it.

Children
No Data