function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VPROKVPROK 

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.
VPROKVPROK
It only works disabled="disabled" any other options will not work here.