yuuvis® RAD Q&A

+2 votes
by (440 points)

Hello everybody,
can someone from the product team tell if there are any plans to add the functionality to show/hide fields in a form based on some criteria?

Basically setting a kind of visibility attribute of a model field to true/false just like the attributes required and readonly?

scope.model.field123.readonly = true/false;
-->
scope.model.field123.visible= true/false;

This would enable some interesting use cases!

Best,
Clemens

2 Answers

0 votes
by (1.0k points)
selected by
 
Best answer

Hi Clemens,

we have had a similar question recently:
https://qa-rad.yuuvis.com/index.php?qa=1261&qa_1=change-field-visibility-via-form-scripting

Unfortunately we do not offer this feature currently. But we would like to discuss your use cases to see if we can find another solution for it. Please contact me via behle@optimal-systems.de and i will arrange a meeting.

Best regards,
Anna

0 votes
by (18.5k points)

Hi Celemens,

just be written down what we have discussed:

To control the access of fields by role-based permissions leads to maintenance overhead and performance influences. So we don`t want to offer such features.

The solution for not showing administrations index data to the users is in general:
a) The user should not configure such fields to be shown in the result list
b) The forms can be designed using tabs. One of the tubs is named 'Administrational data' and is offered as last one.

Best Regards
Martin

by (420 points)
Hello, even if this topic is already older: Is the answer still the latest state? Since the Visibility is still described here as a feature: https://yuuvisdevelop.atlassian.net/wiki/spaces/onpremise/pages/319620069/Client-side+Form+Scripting and it's not possible to handle dynamic expressions like "currenuser" with the "view-right" this would be cool to have as feature
by (18.5k points)
Hi, I checked the documentation and found only one notice in the overview but no concrete example for 'visible'. I correct that one to 'required' which was not mentioned here.
But I will check whether we are able to introduce the attribute 'visible' for a form field and to not render it if set to false.
Ticket: TUK-2007

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
...