cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields in content type

nikes
Champ on-the-rise
Champ on-the-rise
Hi All,

I have two content types say A and B, and a common property in aspect say C which I have added to both types.

In type A property C is mandatory and in type B property C is not mandatory.

From available examples and wiki pages I see that we have to specify mandatory tag while defining property.

But is there and way to definition it in web client config file instead of model file? so that I can make property mandatory in one type and optional in other type?

Thanks,
Nikesh
2 REPLIES 2

jayjayecl
Confirmed Champ
Confirmed Champ
I think this is not possible withtout overriding the java Class parsing the web-client-config-*.xml

nikes
Champ on-the-rise
Champ on-the-rise
Thanks JayJayECL,

It could have been more flexible configuration if we can define mandatory field on web-client-config instead of while defining content type.

I think for now I will create two properties with different names.

Nikesh