Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 Mar 2013 05:19 PM by  Dustin Eatchel
Granting a Security Role based on Custom Fields
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:
New Member


--
29 Mar 2013 05:19 PM

    Looking to see if there are any examples for how to apply a Security Role based off of user input from a RadioButtonList in the product's Custom Field tab. I've scoured the forum, and perhaps I've missed it, but can't find what the syntax would be to get a value from a custom field and apply based on it.

    In the cart, I see granting the role based on quantity, but have been unable to mold this to use a custom field instead of the quantity:


    <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <out>
    <xsl:if test="/this/salesOrderDetail/dynamicFormResult/?????? = ??Value??" >
    <grantSecurityRole>
    <roleName>Role 1</roleName>
    </grantSecurityRole>
    </xsl:if>
    </out>
    </xsl:template>
    </xsl:transform>


    Thanks in advance!

    0
    You are not authorized to post a reply.