Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSM form conditional logic 2 reset values

Neil Fletcher
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2024

Hi everyone,

I'm trying to create a form to use in a ServiceDesk project and wonder if anyone has a suggestion to solve this example;

The form has 2 choices - 'Order new hardware', which triggers a conditional section. 
The employee chooses eg. 'Mobile Phone' and a new condition allows the choices of different phone types.

image.png

...if the employee changes their mind, and goes back and selects 'Order new software' instead, a new condition is triggered where they can select which software they need.

image.png

This works quite well but the problem is that the first choice for hardware is not cleared, so the employee would be ordering both hardware and software.

I'm looking for a solution to reset or clear the values of a conditional section if the employee back-tracks and selects something else.

I guess separate forms would solve it but I wanted to keep everything in the same request form.

Thanks for your help
Neil

1 answer

1 accepted

2 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2024

Hi @Neil Fletcher 

This is a new one for me as well. If this is the case you could report it as a bug.

Are the options chosen after the conditional based on options in the form only, or are they coming from linked custom fields?

It could that this makes a difference.

I have not been able to test this hypothesis of mine, but maybe you can.

Neil Fletcher
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2024

Hi @Marc - Devoteam 

The form is a combo of form-only fields and linked custom fields. 

I followed your suggestion and tested a form with form-only fields and a form with custom linked only fields - they both seem to work in a similar way.  ie. if you back-track, it remembers the previous value.

In testing this I had asked colleagues to jump around the form and maybe that's not a normal situation.

When the form is actually submitted (which I admit I didn't try before posting this), it only takes the values selected for hardware or software (can only choose one)... so if the employee does change their mind, they will submit only what they see... which is correct.

Thanks for your help, it pointed me in the right direction.

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events