While running ATF the values of set Field value and Field value validation should be same

Snow preck
Tera Contributor

precilaK_0-1741597135084.png

while setting values on risk form under particular section - Entity & Applicable Attributes

the same set of values should be replicated on same Risk's form Related List (Risk assessment instance)  Assessable attributes section 

precilaK_1-1741597299808.png

so on set field values on Risk form the same values should be validated on Risk assessment instance form using Field value validation 

 

But problem here is set field value takes backend value for Applicable as 1 and for none as 3(Product applicability=1)

where in it's not matching Field value validation values ( Product applicability =Applicable) with which ATF fails.

precilaK_3-1741597605490.png

precilaK_4-1741597626103.png

if someone has worked on such issues, please share your thoughts below.

 

 

 

 

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Snow preck 

are you sure the choice values are same?

you are trying to set field values on form and then again same on Related list?

share your complete steps

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes @Ankur Bawiskar  As said, i am trying to set field values on risk form and validate the same on related list ---Risk assessment instance form

 

Steps to replicate:

1. Go to risk ---sn_risk_risk 

Active is true and State is monitor ----used Record Query

2. after opening using ---Opening Existing record 

3. Under section Entity and Applicable attributes --- used Set field values

Fill any values (applicable (1) , unknown(2) , none (3) using set field values
i.e 1-backend value, 2-unknown , 3-none

e.g Capability applicability ----Applicable

 Business capability -------None

 Countries  applicability ---Applicable

4. UsedClick UI action to save record

5. Under the same record's related list ----Risk assessment instance ----used Validate Related list visibility (sn_risk_advanced_risk_assessment_instance) 

6.State not in Closed or cancelled --- used Apply filter to list 

7. Used open record in a list 

8. Go to assessable attributes section on Risk assessment instance form 

Validate using field value validation if set values are matching --- used Field value validation

e.g Capability applicability ----Applicable

       Business capability -------None

       Countries  applicability ---Applicable

 

Expectation:  Step 3= Step 8 , but actual result:  Step 3 != Step 8

 

Hope this helps to understand the issue. Thanks.

 

 

 

Shaqeel
Mega Sage

Hi @Snow preck 

 

Can you share the failed screenshot of the page?

Sometime to me also it show the backend value in the set field step but on the form the real values gets inserted.

May be try reloading the page and then validating.

 

regards

Shql


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Snowpreck_0-1741623101184.png

Tried reloading but still the same @Shaqeel