This article discusses how to Add extra Edit buttons to your main form. - Special thanks to Gunters post in the old forums: - There Gunter shows how to add a 2nd or 3rd Edit Button, that works just like the original, but can be linked to your own Detail pages..instead of the original Detail form 1) Browse to the file "includes/nxt/scripts/list.js", open up list.js in Dreamweaver and add the following code below the line that reads //configuration variables.. Here is what it should look like (add the code in red below): //configuration variables // additional function to enable links to secondary forms in the list 2) Save and close the file 3) Now open up your ADDT List form in Split View, click on the original Edit button and add the following code to the end of the Edit button code (update the items in Red to use your actual values): <a class="KT_edit_op_link" href="#" onclick="Secondary_Edit_Form(this,'tickets_qe_sel.cfm'); return false;">Quick Edit</a> <a class="KT_edit_op_link" href="#" onclick="Secondary_Edit_Form(this,'tickets_map_sel.cfm'); return false;">Map Selected</a> 4) You can add as many Edit buttons as needed, just duplicate the code above. (I have added three buttons in my example) In Summary, the new Edit Buttons take on the same CSS look as the original Edit button, and function exactly as the original, including only those records that are Filtered &/or Selected will be passed on to your custom Detail Page(s). Note: I created my custom Detail pages using the Create Dynamic Form Wizard.
|
|
||||||||||
Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites. |
|||||||||||
|
|||||||||||