Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2021-06-06 09:09 AM
Hello All,
I am looking for a Custom object for Add New Button in the Questionnaire , so that when user click on Add new in Questionnaire he redirects to the CR Application . Currently a CCR has been built from Application to Questionnaire , so for the Related Fields in Questionnaire the Add New & Lookup is hidden .
So I am looking for Add New in that Questionnaire , so that after clicking on it it will redirect to the CR Application Record .
2021-07-01 05:15 AM
Thanks Ilya , I written the below code ,based on <A> tag , but some how Add New Button CO , is not displaying the button.
<script type="text/javascript">
<a id="master_DefaultContent_rts_ts3739_s2951_ss56222_Add_New" title="Add New" class="ml-command-item add-new" onclick="javascript:$pb('{"a":[{"Key":"contentid","Value":"2189991"},{"Key":"fieldid","Value":"56222"},{"Key":"moduleId","Value":"362"},{"Key":"refmodid","Value":"670"},{"Key":"levelid","Value":""},{"Key":"isSubform","Value":"False"},{"Key":"isAnswerValuesSubform","Value":"False"}],"e":"refFieldAddNew"}');csp(event);return false;" href="javascript:void(0);">Add New</a>
</script>
2021-07-01 05:22 AM
As I mentioned, why don't you just use $('master_btnSave').click(); and instead of the master_btnSave put ID of the button.