We recently upgraded from osTicket v1.10 to v1.15.4

Now if we want to change a form field (Manage -> Forms -> Ticket details -> config) We get an error message: "Each choice requires a key and has to be on a new line. (eg. key:value)"

When I add this key to the values, the error does not appear and I am able to safe the changes to the form. When we go to the Agent Panel however, it appears that all the values in the changed formfield that previously had a value, are now empty.

Server OS Version: Ubuntu Server 20.04 LTS
osTicket Version: v1.15.4 (6bd7884)
Web Server: Apache
MySQL Version: 10.3.32
PHP Version: 7.4.3
Location: /scp/forms.php?id=2#ajax.php/form/field-config/41

  • KevinTheJedi replied to this.
  • noxion

    Of course this will show the old values as blank because all the old values don’t have keys saved for them. So if you want the old values to appear you must leave the choices filed alone. Honestly if you have more than 2 choices it’s best to use a List instead. I would retire the old Choices Field and replace it with a List.

    Cheers.

    noxion

    That’s because we now require keys for choice fields (read the field description above the box). You must update your choices to the following format:

    key1:aanmaken nieuw account
    key2:verwijderen account

    Cheers.

    noxion

    Of course this will show the old values as blank because all the old values don’t have keys saved for them. So if you want the old values to appear you must leave the choices filed alone. Honestly if you have more than 2 choices it’s best to use a List instead. I would retire the old Choices Field and replace it with a List.

    Cheers.

    Hello KevinTheJedi,

    It seems that list is the right choice for us. I will suggest to the application owner to convert from choices to list.

    Appreciate your help. thanks!

    Write a Reply...