You need to sign in to do that
Don't have an account?
HOW TO WRITE A VF PAGE TO READ ONLY FIELDS
Hi,
i need help from tou
How to write a code to given scenario

this is my vf page in this vf page insert values and click on save button.
After click of save button record will save and it will redirecting to object.
here i dont want to go object record page. after click of save button record save and page will redirect same vf page like below

i need help from tou
How to write a code to given scenario
this is my vf page in this vf page insert values and click on save button.
After click of save button record will save and it will redirecting to object.
here i dont want to go object record page. after click of save button record save and page will redirect same vf page like below
Try below, i believe this should work for you.
public pagereference save(){
// logic for save below
.......
.......
......
// DML save
pagereference pg = new pagereference('/apex/yourvfpageName');
pg.setredirect(true);
return pg;
}
Thanks,
Use insted of inputfield outputfirld .
regards,
Harish.R.
Let me know if this helps.