Upon Approving a Request, Also Submit the request in the same operation
I'm interested to know if it's possible to add some JS to the custom.js file to be able to change the behaviour of the approve/reject buttons on a Review Activity on the Cireson Portal.
Basically when a user clicks the approve/reject button, we want it to simultaneously submit with the same operation (also skipping the 'Add comments' question)
I've tried to find the Javascript function to attempt to write this myself, but I wasn't entirely sure exactly what I was looking for.
Thanks,
Tony
Best Answer
-
Tony_Collett Cireson Support Super IT Monkey ✭✭✭✭✭In terms of what I have so far, I've only been investigating the addition. Trying to find all the different functions and scripts by using the Event Finder in Chrome Developers. I also haven't been given much time on it and so it's a lower priority.
I've been able to find a way to 'remove' the comment box in the main javascript file (outside of the Custom folder), but I'm still working out what function is called when clicking the save button.
I have tried a click event on the approve and reject button, but wasn't able to refine it due to other commitments.
Essentially the direction I would go would be to remove the comment box, and save when approve/reject was clicked. That would be the most sensible, rather than having a timeout on the comment box. It might look a little messy.5
Answers
If this is the case, then yes this would be possible. You would have to replace the click event of the Approve and Reject buttons to enter a default comment and commit the data.
How to do this?? I have no idea.
What do you have so far and what direction were you moving in?
I've been able to find a way to 'remove' the comment box in the main javascript file (outside of the Custom folder), but I'm still working out what function is called when clicking the save button.
I have tried a click event on the approve and reject button, but wasn't able to refine it due to other commitments.
Essentially the direction I would go would be to remove the comment box, and save when approve/reject was clicked. That would be the most sensible, rather than having a timeout on the comment box. It might look a little messy.
Thanks,
Steve
Hi Steve, no, I haven't had another opportunity to look into it since I posted this. I probably won't be able to return to this for now.
Thanks
Good Luck