Menu

Customize fields in the user portal

2022-12-26
2023-01-02
  • Daniel Camargo

    Daniel Camargo - 2022-12-26

    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
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-12-27

    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.

     
    • Daniel Camargo

      Daniel Camargo - 2022-12-27

      You know how manners are working in itop ?

      Thanks for answering :)

       
  • Daniel Camargo

    Daniel Camargo - 2022-12-27

    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 ! :,)

     
  • Vincent @ Combodo

    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).

     
    • Daniel Camargo

      Daniel Camargo - 2023-01-02

      Thank you Vincent we achieved what we required thank you for guiding us :)

       
  • Daniel Camargo

    Daniel Camargo - 2023-01-02

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.