Hi All,
I want to call two if conditions on button click event using javascript in sharepoint 2010 custom list form.
Initially first condition has to satisfy after that second one has to be satisfied.
My code is  below like:
<input type=”button” title=”submit’ value=”submit” onclick=”javascript:if(sample())if(sample1()){ddwrt:GenFireServerEvent(‘__commit;__redirect={default.aspx}’)}”/>
In above code two conditions are checking perfectly but committing and redirecting is not working.
Please help me on this and post as soon as possible if any ideas you have.
Thanks,
Manjunatha Reddy.MÂ
Hi Ajeeth,
Even I used absolute url it is not able to commit and reirecting.Please help me in this.
Thanks,
Manjunatha Reddy.M