Guys, I need to be able to show/hide certain attributes on a form using aware's widgets and not using HTML form based on certain condition at runtime.
Like in the following Pic, I need to show/hide Skill set.
But I can't find any property, like visible to set
Is there a way to Show/hide an attribute on a condition?
Re: Is there a way to Show/hide an attribute on a condition?
I am probably missing something, but what about if you have a process that runs BEFORE calling the form that does a READ PROTECT?
Bruce
Bruce
Re: Is there a way to Show/hide an attribute on a condition?
I kind of thought about that, but that solution is more static. The screenshot is a sample for the sake of this post. But in reality, I need something more dynamic. For example, a user's selection from a radio button would trigger what other attributes to show or not. So a process before form is too early.BLOMASKY wrote:I am probably missing something, but what about if you have a process that runs BEFORE calling the form that does a READ PROTECT?
Bruce
What we need is a conditional visibility based on data entered before, just like applicability feature we have elsewhere.
Re: Is there a way to Show/hide an attribute on a condition?
I agree, something very simple that renders huge results. Each attribute should have an Applicability condition.What we need is a conditional visibility based on data entered before, just like applicability feature we have elsewhere.
I use an invisible separator containing the attribute(s) as a workaround, you can hide it based on an applicability rule and then have a rule on the object that manages it dynamically when there is a form change (recalc on forms) and it behaves elegantly as opposed to READ PROTECT
Re: Is there a way to Show/hide an attribute on a condition?
Oh yes, yes Tony.ACDC wrote:I agree, something very simple that renders huge results. Each attribute should have an Applicability condition.What we need is a conditional visibility based on data entered before, just like applicability feature we have elsewhere.
I use an invisible separator containing the attribute(s) as a workaround, you can hide it based on an applicability rule and then have a rule on the object that manages it dynamically when there is a form change (recalc on forms) and it behaves elegantly as opposed to READ PROTECT
Forgot about the separator having visibility feature. I wish this visibility would be added to each attribute.
Thank you Tony. Great workaround.
-
- Posts: 1457
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Is there a way to Show/hide an attribute on a condition?
IF BO.RadioButton<> 'Show' OR (BO.RadioButton WAS CHANGED AND BO.RadioButton <>'Show') THEN READ PROTECT BO.SkillSelectBenHayat wrote:I kind of thought about that, but that solution is more static. The screenshot is a sample for the sake of this post. But in reality, I need something more dynamic. For example, a user's selection from a radio button would trigger what other attributes to show or not. So a process before form is too early.BLOMASKY wrote:I am probably missing something, but what about if you have a process that runs BEFORE calling the form that does a READ PROTECT?
Bruce
What we need is a conditional visibility based on data entered before, just like applicability feature we have elsewhere.
Then check Dynamic The rule will then work when you change the Radio Button setting.
It would be easier to have conditional visibility as a field setting.
Re: Is there a way to Show/hide an attribute on a condition?
Serious? Never knew READ PROTECT works in interactive mode.PointsWell wrote:IF BO.RadioButton<> 'Show' OR (BO.RadioButton WAS CHANGED AND BO.RadioButton <>'Show') THEN READ PROTECT BO.SkillSelectBenHayat wrote:I kind of thought about that, but that solution is more static. The screenshot is a sample for the sake of this post. But in reality, I need something more dynamic. For example, a user's selection from a radio button would trigger what other attributes to show or not. So a process before form is too early.BLOMASKY wrote:I am probably missing something, but what about if you have a process that runs BEFORE calling the form that does a READ PROTECT?
Bruce
What we need is a conditional visibility based on data entered before, just like applicability feature we have elsewhere.
Then check Dynamic The rule will then work when you change the Radio Button setting.
It would be easier to have conditional visibility as a field setting.
Thanks!
Re: Is there a way to Show/hide an attribute on a condition?
Using READ PROTECT to expose attributes on a form for the sake of simple form design is an overkill. All the rules on the object will be fired when there is no need for this. We need something simple that runs on the form without resolving all the rules
READ PROTECT (for this purpose) works fine if you don't have many object rules, but on a complex object with many rules, its a dog
READ PROTECT (for this purpose) works fine if you don't have many object rules, but on a complex object with many rules, its a dog
Re: Is there a way to Show/hide an attribute on a condition?
Try this bsv and see if it is what you want..
You can remove the separator look with some javascript and make it look like regular attributes on a form. If this suits your needs I can help with that. Let me know..
You can remove the separator look with some javascript and make it look like regular attributes on a form. If this suits your needs I can help with that. Let me know..
- Attachments
-
- FormConditions.zip
- (37.29 KiB) Downloaded 530 times
Re: Is there a way to Show/hide an attribute on a condition?
ACDC is right with rules getting re-evaluated. This is my most complex, biggest and with most rules, and that's why the form is big and complex if I put every attribute on it. I need to be able to show/hide the attribute.ACDC wrote:Using READ PROTECT to expose attributes on a form for the sake of simple form design is an overkill. All the rules on the object will be fired when there is no need for this. We need something simple that runs on the form without resolving all the rules
READ PROTECT (for this purpose) works fine if you don't have many object rules, but on a complex object with many rules, its a dog
I created a new FR thread related to having Visibility property for each attribute.
PLEASE go in and place your vote and desire for support to consider it.
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Is there a way to Show/hide an attribute on a condition?
Dynamic protection rules have been designed to dynamically hide/show attributes on a form.
Not true. Only dynamic rules will be executed.
If you do not want to use them (and I don't understand why) you will have to use scripts (which will require you to know some Kendo UI stuff, but it is doable).
We will not be supporting applicability conditions in attributes.
Code: Select all
Using READ PROTECT to expose attributes on a form for the sake of simple form design is an overkill. All the rules on the object will be fired when there is no need for this
If you do not want to use them (and I don't understand why) you will have to use scripts (which will require you to know some Kendo UI stuff, but it is doable).
We will not be supporting applicability conditions in attributes.
Aware IM Support Team
Re: Is there a way to Show/hide an attribute on a condition?
Using separators works fine for me, it's not a lot of extra work and is very responsive.
-
- Posts: 1457
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Is there a way to Show/hide an attribute on a condition?
Be mindful that this approach is only hiding the field on one form, so needs to be repeated everywhere the condition is applicable. READ PROTECT hides the field based on the condition EVERYWHERE - all forms all queries all processes (depending on the EXCEPT use).idpSteve wrote:Using separators works fine for me, it's not a lot of extra work and is very responsive.
Also the Separators approach potentially allows for the injection of data via the developer console of a form and then its use elsewhere. The READ PROTECT limits the prevents the use of the data (to different user levels depending on whether you use EXCEPT)
All caveated with 'As far as I understand (and have used READ PROTECT)'
Re: Is there a way to Show/hide an attribute on a condition?
Interesting..
@PointsWell : Would having separators then be less 'safe' than showing fields on a form and just having a user ignore them? I'm not sure if you're saying someone would be able to add data to a field hidden in a separator, or if you're saying using a separator is an added risk that doesn't exist on a form without separators.
@PointsWell : Would having separators then be less 'safe' than showing fields on a form and just having a user ignore them? I'm not sure if you're saying someone would be able to add data to a field hidden in a separator, or if you're saying using a separator is an added risk that doesn't exist on a form without separators.
-
- Posts: 1457
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Is there a way to Show/hide an attribute on a condition?
Using hidden fields via CSS is moving the control from server side to client side. The use of separators is not risking in and of itself, but the use of css hide to take the separator away creates (potential) risk.idpSteve wrote:Interesting..
@PointsWell : Would having separators then be less 'safe' than showing fields on a form and just having a user ignore them? I'm not sure if you're saying someone would be able to add data to a field hidden in a separator, or if you're saying using a separator is an added risk that doesn't exist on a form without separators.
In your example create a staff record via the UI. Then go to the database table and manually add data to another field that should remain hidden. Then return to your UI, view the record you’ve just modified and then open up the developer console. That “hidden” data will be served to the browser. Then change the hidden value (via the console). Now save.
Obviously in the example we are talking about we are hiding the field to guide the user to complete fields, but if we were using hide as a means of preventing one user from seeing data that should be available to another then this route has risk.