Hi how are you, I'm trying to create a brick to be able to add more fields to the Close tickets pop-up window, but I can't do it, could someone help me or give me a clue, thanks.
Where could I find the file where all these pop-up windows are stored? I already have the extension, I just need that and I can't find it
You're on the right way if you're already creating an extension. Never overwrite existing files.
I typically advise to take a look at data/datamodel-production.xml ; as this contains the "final" version of all the datamodel XML files of each module combined.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel,
You want to add a field to a "form", this is not a brick!
So in your extension in XML you need to duplicate the re_open form
1. Give the new form an id like "ticket-close" (currently it's using a default form, which displays exactly the same fields as the back-end console)
2. replace the ev_reopen code with ev_close .
3. Then change the twig to set the fields you need (all of them even the automatic as you switch to an explicit mode doing this).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Vincent, thank you very much for your help, we already got the extension to work now we have another challenge, can we make those new fields display only on a specific requirement?
Thanks a lot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi how are you, I'm trying to create a brick to be able to add more fields to the Close tickets pop-up window, but I can't do it, could someone help me or give me a clue, thanks.
Where could I find the file where all these pop-up windows are stored? I already have the extension, I just need that and I can't find it
Thanks a lot
Last edit: Daniel Camargo 2022-12-26
You're on the right way if you're already creating an extension. Never overwrite existing files.
I typically advise to take a look at data/datamodel-production.xml ; as this contains the "final" version of all the datamodel XML files of each module combined.
You know how manners are working in itop ?
Thanks for answering :)
Could someone be a little more specific where I can find where these popups are defined?
I've been looking for her for a long time
THANK YOU ! :,)
Hi Daniel,
You want to add a field to a "form", this is not a brick!
So in your extension in XML you need to duplicate the re_open form
1. Give the new form an id like "ticket-close" (currently it's using a default form, which displays exactly the same fields as the back-end console)
2. replace the ev_reopen code with ev_close .
3. Then change the twig to set the fields you need (all of them even the automatic as you switch to an explicit mode doing this).
Thank you Vincent we achieved what we required thank you for guiding us :)
Hello Vincent, thank you very much for your help, we already got the extension to work now we have another challenge, can we make those new fields display only on a specific requirement?
Thanks a lot