Hi All,
Help! Is it possible to hide/show Action Buttons on forms based on the logged user? I was thinking that injecting the {{user.id}} into the fetchxml entered within the Button's Filter Criteria should work.... but it's not working. It seems the Filter Criteria only accepts fetchxml. Is this correct? The fetchxml works with hard-coded GUID or without the logged user condition but this is needed because different users will have access to the same view. Splitting entity forms/views by user does not apply here. Example: A delegated user must be able to interact with all records but can ONLY SUBMIT his own record.
Here is my current fetchxml with hardcoded GUID:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="www_plan">
<attribute name="www_planid" />
<filter type="and">
<condition attribute="statuscode" operator="eq" value="1" />
<condition attribute="www_contactid" operator="eq" uitype="contact" value="{4440EF99-8436-E811-A95D-000D3EE46927}" />
</filter>
</entity>
</fetch>
Tried: <condition attribute="www_contactid" operator="eq" uitype="contact" value="{{ user.id }}" />
No luck!
Thanks in advance for your help!
Tim
*This post is locked for comments
I have the same question (0)