Menu

Portal: Check associated objects and attachments before submitting

Zwettler
2022-08-05
2022-08-05
  • Zwettler

    Zwettler - 2022-08-05

    Hi everyone,
    what i did was creating a extension that adds a new field in the calls UserRequest. The new field is called "cust_creator_id". Which stands for the User-id of the creator of the ticket. It is mostly used on crating a Request in Helpdesk by an agent in the console. All together this works fine.

    Problem: The new custom field ist defined as mandatory. When i now create a new Request in the portal, i get this error: Error: object cannot be created. Check associated objects and attachments before submitting again this form. (see attachement)

    On my opionion the error is a result of the MANDATORY field. If I set it to not mandatory, everything works fine.
    Question: How can a add my custom field to the portal as a new field in the form?

    kind regards
    G.H.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-08-05

    You'd need to redefine the form - https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Aportal_xml

    Unfortunately, it's often more work than adding fields in the back-end; as the "XML nodes" (HTML tags) typically don't have an ID; so you can not simply override a small part of a form.

     
  • Zwettler

    Zwettler - 2022-08-05

    I was afraid it wouldn't be that easy. That's a size too big for me ...

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-08-05

    It's actually not that much of a step if you already managed to do all the things you mentioned, adding a custom field etc :)

     

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.