Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

ATF - Fields appearing/hiding based on dropdown selection

Elena Spıru
Mega Guru

Hello,

 

I need to create ATFs for the OOTB Record Producer "Log a complaint".

Inside of it, there is the variable "Complaint Type" with a dropdown of 2 choices (Product or Location).

  • If you choose Product, a new field appears in which you need to select the product (Reference field - cmdb_model).
  • If you choose Location,  a new field appears in which you need to select the location (Single Line Text)


In order for my ATF to work for both options, I've created a Parameter definition.

Inside the Test steps, I've added "Set variables value(SP)" - where I add the parameter and then a "Field State Validation(SP)" to check if "Product field" appears.

 

My issue is that I'm getting errors when the parameter is set to location, because it is checking for the "product field" and even if i add afterwards a new fields state validation for location, the ATF is stuck in this step.
Is there a way to do that dynamically? Or a better way to tackle this?

Thank you,
Elena

1 ACCEPTED SOLUTION

Elena Spıru
Mega Guru

The easiest solution I've found was to set inside the Set Variable Values (SP) both fields with a value (Product and Location) this way when the parameter is set(to whatever option), the field exists and can be populated.

View solution in original post

1 REPLY 1

Elena Spıru
Mega Guru

The easiest solution I've found was to set inside the Set Variable Values (SP) both fields with a value (Product and Location) this way when the parameter is set(to whatever option), the field exists and can be populated.