How to make a form control read-only for specific user role

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make a form control read-only for specific user role

spanithi
Hello Team,

Can we make a control read-only for specific user-role?
I have an role shf-owner and a control named comments. Now I want to make comments control as read-only for the role shf-owner.

I tried adding doing in Read-Only in formulas but still no luck.

Could you please guide me

Thanks,Satish

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: How to make a form control read-only for specific user role

spanithi
This is completed. I am able to do in formulas in control settings. Thanks,Satish

On Wednesday, December 6, 2017 at 4:07:55 PM UTC+5:30, Satish Panithi wrote:
Hello Team,

Can we make a control read-only for specific user-role?
I have an role shf-owner and a control named comments. Now I want to make comments control as read-only for the role shf-owner.

I tried adding doing in Read-Only in formulas but still no luck.

Could you please guide me

Thanks,Satish

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: How to make a form control read-only for specific user role

Alessandro  Vernet
Administrator
Perfect Satish, and those finding this thread though a search, this is done
with `xxf:user-roles() = 'my-role'`, in the Read-Only formula for the field.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet