You need to sign in to do that
Don't have an account?
VPROK
Ho to use Double quotes in the formulas in the VF page.
Hi guys.
Trying to created a conditional styling here and have a problem.
I have a tag:
<input id="theApprovalButton" type="button" name="theApprovalButton" onclick="sendForApproval();" value="Send for Approval" class="btn" style="display: block" /> - This works perfect!
But sometimes I need to make this button disabled. In this case I want to use this:
I just need to put disabled="disabled" somewhere in the tag, so I use formula(ETOdisabled is a boolean variable that come from controller)
<input id="theApprovalButton" type="button" name="theApprovalButton" onclick="sendForApproval();" value="Send for Approval" class="btn" style="display: block" {!IF(ETOdisabled, 'disabled="disabled"','')} />
But the editor won't allow me to save this because of the double quotes. How can I use them? It should be possible.
Thanks in advance.
Trying to created a conditional styling here and have a problem.
I have a tag:
<input id="theApprovalButton" type="button" name="theApprovalButton" onclick="sendForApproval();" value="Send for Approval" class="btn" style="display: block" /> - This works perfect!
But sometimes I need to make this button disabled. In this case I want to use this:
I just need to put disabled="disabled" somewhere in the tag, so I use formula(ETOdisabled is a boolean variable that come from controller)
<input id="theApprovalButton" type="button" name="theApprovalButton" onclick="sendForApproval();" value="Send for Approval" class="btn" style="display: block" {!IF(ETOdisabled, 'disabled="disabled"','')} />
But the editor won't allow me to save this because of the double quotes. How can I use them? It should be possible.
Thanks in advance.
VPROK
It only works disabled="disabled" any other options will not work here.