You can create the button with HTML. I was able to view the source of the Submit for Approval button by inspecting the element:
<input value="Submit for Approval" class="btn" title="Submit for Approval" name="submit" onclick="if ((Modal.confirm && Modal.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?')) || (!Modal.confirm && window.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?'))) navigateToUrl('/p/process/Submit?retURL=%2F[[[[[[INSERT YOUR RECORD ID HERE]]]]]&id=[[[[[[INSERT YOUR RECORD ID HERE]]]]]','DETAIL','submit');" type="button">
You can create the button with HTML. I was able to view the source of the Submit for Approval button by inspecting the element:
<input value="Submit for Approval" class="btn" title="Submit for Approval" name="submit" onclick="if ((Modal.confirm && Modal.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?')) || (!Modal.confirm && window.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?'))) navigateToUrl('/p/process/Submit?retURL=%2F[[[[[[INSERT YOUR RECORD ID HERE]]]]]&id=[[[[[[INSERT YOUR RECORD ID HERE]]]]]','DETAIL','submit');" type="button">
Apologies I have been out of office and am just seeing this now. Did you get the button issue resolved? If not please post your code and describe the issue in more detail. Thanks!
You can create the button with HTML. I was able to view the source of the Submit for Approval button by inspecting the element:
<input value="Submit for Approval" class="btn" title="Submit for Approval" name="submit" onclick="if ((Modal.confirm && Modal.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?')) || (!Modal.confirm && window.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?'))) navigateToUrl('/p/process/Submit?retURL=%2F[[[[[[INSERT YOUR RECORD ID HERE]]]]]&id=[[[[[[INSERT YOUR RECORD ID HERE]]]]]','DETAIL','submit');" type="button">
All Answers
You can create the button with HTML. I was able to view the source of the Submit for Approval button by inspecting the element:
<input value="Submit for Approval" class="btn" title="Submit for Approval" name="submit" onclick="if ((Modal.confirm && Modal.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?')) || (!Modal.confirm && window.confirm('Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?'))) navigateToUrl('/p/process/Submit?retURL=%2F[[[[[[INSERT YOUR RECORD ID HERE]]]]]&id=[[[[[[INSERT YOUR RECORD ID HERE]]]]]','DETAIL','submit');" type="button">
Thanks a lot..
I was succesfull in creating the Custom Approval Button. But i couldnt add it to visualforce page using Command action. Is ther another way to do it..
Thanks in advance..
Apologies I have been out of office and am just seeing this now. Did you get the button issue resolved? If not please post your code and describe the issue in more detail. Thanks!