This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

metadatacard lookup field

Former Member
Former Member
Hi, when a document is added to M-Files, the meta data card pops up.
When selecting a value from a property list (like contacts), a new empty property box  will be added to the card right underneath the previous filled value.
Can I disable this default behaviour through metadatacard configuration? In some cases, only one value is required.
  • The default property definition that's created automatically for each new object type is always multi-select ie. it allows you to select multiple values. If you want to always restrict it to only one selection, you can create another property definition of type "Choose from list " (ie. single-select value list property) and use that in your classes.

    For reference, see the data types in the user guide.
  • Former Member
    Former Member
    I understand, but in the past you had to add a 2nd/3rd/etc line for the property manually by clicking the '+' sign, or by entering 'Ctrl+i'
    So, in the rare case a multi value was required, the user could add it.
    I'd like to bring this behaviour back since most of the times, only one value is required and it will save a click/tab per property. Some users really don't want extra clicks :)

    I recall this was possible for multiline text properties where you can override with a parameter so the propertyfield appears as a single line text field on the meta data card.
    so, how do I override the default adding of lines without changing the property value type (since we still do require the type).
  • Hi there,

    I am also interested in a solution regarding this matter, we have to send a message to support ?

    Thanks,
    Zoli
  • I found out that there's an undocumented metadata card configuration behavior which should help here: you need to add [tt]"AutoEmptyLine": false[/tt] to the property behavior via the Advanced tab (this option is not available in the graphical configuration UI).

    Example:

    "Behavior": {
    "Properties": [
    {
    "Property": "1079",
    "AutoEmptyLine": false
    }
    ]
    }


    As this is an undocumented feature I'm not sure when this was added so if you are running an older version of M-Files this option might not be available.
  • Former Member
    Former Member
    Hi Joonas, awesome, thanks.
    I'll give this a try on the latest version.
  • Former Member
    Former Member
    Hi, the AutoEmptyLine parameter is easy to add to the metadatacard rules and it's working like a charm. Thanks!