You need to sign in to do that
Don't have an account?
babloo123
VF page required fields
I have multiselect Checkboxes for a questions like certifications
Salesforce Admin
Salesforce Advance Admin
Salesforce Developer
Other
So I can select as many as I want but if I select other then there is a text field below to enter what the other certifications are but how to make the below question mandatory if in the previous question only if other is selected?
Salesforce Admin
Salesforce Advance Admin
Salesforce Developer
Other
So I can select as many as I want but if I select other then there is a text field below to enter what the other certifications are but how to make the below question mandatory if in the previous question only if other is selected?
The below piece of code will give you an idea about what I was trying to explain.
You can modify it to meet your requirement.
Visualforce page:
Controller:
Hope this helps.
Please do not forget to mark it as Solution if it solved your problem.
Regards,
Lakshmi.
All Answers
<apex:inputText...... rendered="{!showField}" />
Wherever your conditional logic is written, you can set the Boolean variable showField to True/False.
Hope this helps.
Regards,
Lakshmi.
Thanks a lot for the info but I am not getting how to write code for the same can you please help? May be a random example can you please help
The below piece of code will give you an idea about what I was trying to explain.
You can modify it to meet your requirement.
Visualforce page:
Controller:
Hope this helps.
Please do not forget to mark it as Solution if it solved your problem.
Regards,
Lakshmi.
apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute.
I think this is because I have attachment in my VF page if you know can you help me overcome this issue or anyother way to make a validation just saying required as other is selected?