Hello ITOP team, we want to view the customized request template at the end of the original ticket, there is no valid reason for having the request template before the title and description since both are required fields.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With an iTop extension you can change the display of an object in the User Portal, the field code used by customized request form in a UserRequest is service_details, so just move that field within the Ticket creation form of the Portal.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know about the service_details thing
But i dont know file has the the fields of the ticket creation form of the Portal you're talking about, can you point me to its location so i can alter it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Altering the source code of iTop is really not a good idea as it's not compatible with any future upgrade of iTop... Why do you want to do this rather than building an iTop extension?
There is no specific tutorial for moving fields within a form, but this one is making a field mandatory in a form, so explains most of the work to do.
Last edit: Vincent @ Combodo 2023-12-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I meant where can i find it in the code, because usually when i write an extension i use what is already defined and do my alterations. Ive been searching for the location of this field for a while for no use
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You cannot find that field "service-details" in iTop source code, as it's brought by the extension it-self.
Check the file itop/data/datamodel-production.xml it contains the full aggregated XML with all your extensions and result of setup choices. You will see the form and twig to modify.
This advice is valid for any XML changes you which to do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello ITOP team, we want to view the customized request template at the end of the original ticket, there is no valid reason for having the request template before the title and description since both are required fields.
With an iTop extension you can change the display of an object in the User Portal, the field code used by customized request form in a UserRequest is service_details, so just move that field within the Ticket creation form of the Portal.
I know about the service_details thing
But i dont know file has the the fields of the ticket creation form of the Portal you're talking about, can you point me to its location so i can alter it?
Altering the source code of iTop is really not a good idea as it's not compatible with any future upgrade of iTop... Why do you want to do this rather than building an iTop extension?
There is no specific tutorial for moving fields within a form, but this one is making a field mandatory in a form, so explains most of the work to do.
Last edit: Vincent @ Combodo 2023-12-21
I meant where can i find it in the code, because usually when i write an extension i use what is already defined and do my alterations. Ive been searching for the location of this field for a while for no use
You cannot find that field "service-details" in iTop source code, as it's brought by the extension it-self.
Check the file itop/data/datamodel-production.xml it contains the full aggregated XML with all your extensions and result of setup choices. You will see the form and twig to modify.
This advice is valid for any XML changes you which to do.