I can't dynamically set it with javascript because the apex:param element isn't rendered in HTML, so I'm not sure what I should do to set apex:param's value. I need the value to be a javascript variable. Right now, I have the value
hardcoded to be '123' but I want this to be the value of a javascript variable.
VF:
<apex:form>
<apex:commandLink styleClass="slds-button slds-button--neutral" action="{!back}">
<apex:param name="customRoles" id="customRoles" value="123" assignTo="{!custom_roles}"/>
<svg aria-hidden="true" class="slds-button__icon slds-button__icon--left">
<use xlink:href="{!URLFOR($Resource.lightning, '/assets/icons/utility-sprite/svg/symbols.svg#back')}"></use>
</svg>
Back
</apex:commandLink>
</apex:form>
Apex:
public String custom_roles {get;set;}