Make Custom Attributes Mandatory?
2 2

4 posts in this topic

Hi,

is it possible to make a custom attribute mandatory, so the user has to give it a value on creation using the Ftrack web gui?

For example I want to have a text attribute like "my_extra_name" to be a mandatory information which the user has to supply on creation through the gui.

Right now i see two ways for creating new DB instances of my object types but non forces the user to supply my extra data.

(The first one at least offers the possibility to directly set the value for a custom attribute and makes i more prominent but it is not mandatory.

The Second way does not even offer a direct way for setting any values other then the Name. The user has to select the new instance, open the info-box and fill in additional information there and then save.)

 

Thanks for the help in advance :)

 

Lukas

Ftrack_gui_1.thumb.JPG.da8268def4ebbb4766fed84469db025b.JPG

 

Ftrack_gui_2.thumb.jpg.ff8afc9ddc168a259bb545c5a1fbea07.jpg

Share this post


Link to post
Share on other sites

I'm afraid it is not possible to make them mandatory. What you can do is listen to the creation event and pop up a dialog to remind the user to set the attribute. But that would require some programming, let me know if you want me to point you in the right direction there.

Share this post


Link to post
Share on other sites

Hi Mattias,

it would be great if you could give me more information about your "popup dialog" suggestion and how it could be realized.

And maybe you can tell me if there are plans for implementing such a feature like making attributes mandatory?

Best regards
Lukas

Share this post


Link to post
Share on other sites

Here is a link to the documentation about actions: http://help.ftrack.com/developing-with-ftrack/key-concepts/actions and last example shows you how to trigger action UIs based on events in ftrack. We also have an example of an action in this repository: https://bitbucket.org/ftrack/ftrack-recipes/

No plans at the moment I'm afraid, mandatory custom attributes is an interesting idea and I will raise it with the team.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2