You need to sign in to do that
Don't have an account?
Cancel button not working in vf page
I am creating a vf page to create New Event records. I have a cancel button on the page. when i click on the cancel button, it should take me to home page. but here what result I am getting is, instead of redirecting me to home page,when i click on cancel button it is asking me to enter value for mandatory fields. once i enter mandatory field values and click on cancel, it is redirecting me to home page. the error is "you must enter a value" for start datetime,end date time and subject. i am referring to standard fields directly on the page.
Kindly help me in resolving this issue asap.
Thank you
anny
Hi,
To override the mandatory field validation when a button pressed on the Vf page. you can override by setting the immediate=”true” attribute of the command button
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
Hi,
To override the mandatory field validation when a button pressed on the Vf page. you can override by setting the immediate=”true” attribute of the command button
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Thank you. :) it works.