You need to sign in to do that
Don't have an account?
Sandy singh
filed value change at run time read mode or edit mode
Hi All,
I need to access address variable in visual force page, so that if address is have some value its display as output text &
if it has null value in controller it display blank as a input textArea field in visual page. My Controller is below.
class myController {
public myController(){this.address='my address' ;}
public String address{ set(this.address=address;}
get(
if(address!=null) return address ; else{address=null; return address;}
}
}
Please help me on this requirement.
Thanks in advance,
Sandy
Hi,
You can try below code snippets
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
Hi,
You can try below code snippets
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
I think this will work also:
Controller:
Thanks Clark,
Your solution is perfect for my requirement.