You need to sign in to do that
Don't have an account?
make the field required when the checkbox is unchecked
Hi to everyone,
i have one scenario on lead conversion vf page,
i have a field called 'donotcreatetaskuponconversion' default value value set to true. and i have 2 more fields 'status, priority'.
when i uncheck that checkbox i need status and priority will be required( i need the required banner next to that field).
i written the code like this,
<apex:inputField value="{!task.status}" required="if{donotcreatetaskuponconversion=false}" />
<apex:inputField value="{!task.priority}" required="if{donotcreatetaskuponconversion==false}" />
can anyone help me out on this
or
any sample code.
thanks in advance,
call action function on the change of checkbox. Set the required property to true and rerender the fields.
thanks for reply,
i tried in that way but i could not able to solve, maybe i am using the wrong functionality.
can you please post some sample code if you have.
thanks again
Put those inputfields into some sort of container, and force a rerender on them when the button is clicked.
thanks for the reply,
i tried but, may i am doing mistake
if you sugest me some sample code that could be more helpful to me.