Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Start Tax Return Process' Field conditions

mohseen38
Giga Explorer
Could you please help me what methods i can use to implement in both form and list views.
@Chuck Tomasi @All Developers
Given
 I am a Mobility fulfiller/mobility lead/mobility admin,
 
When I try to check the field 'Start Tax Return Process (Destination)' /'Start Tax Return Process (Home)' from Tax Info form/list view,
Then it should only get checked if the pre-set conditions satisfy



1) Conditions - 

A) For checking Field - 'Start Tax Return Process (Destination)' -

i) Tax Return Required (Destination) is NOT Empty

ii) Tax Vendor (Destination) is NOT Empty
iii) E-List included (Destination) is NOT Empty
iv) E-List Reason of Inclusion (Destination) is NOT Empty


->Once the field is checked & updated/saved the form/list - the field 'E-List Sent to vendor (Destination)' should be auto populated with current date and made 'Read -Only'

B) For checking Field - 'Start Tax Return Process (Home)' -
i) Tax Return Required (Home) is NOT Empty

ii) Tax Vendor (Home) is NOT Empty
iii) E-List included (Home) is NOT Empty
iv) E-List Reason of Inclusion (Home) is NOT Empty


-> Once the field is checked & updated/saved the form/list- the field 'E-List Sent to vendor (Home)' should be auto populated with current date and made 'Read -Only'


2) Error message - (Both Form/List view)
A) For Field - 'Start Tax Return Process (Destination)' -

In case the conditions do not match and user is trying to check the checkbox of field from form view/list view, user should get an error prompt and any update to the field should not be saved.

Message - 'Below field(s) are required to be completed before checking this field. Please fill and try again.
Fields - <Add custom field name> <only the fields out of below 4 that are empty to be mentioned in the error'>
1. Tax Return Required (Destination)

2. Tax Vendor (Destination)
3. E-List included (Destination)
4. E-List Reason of Inclusion (Destination)


B) For Field - 'Start Tax Return Process (Home)' -

In case the conditions do not match and user is trying to check the checkbox of field from form view/list view, user should get an error prompt and any update to the field should not be saved.

Message - 'Below field(s) are required to be completed before checking this field. Please fill and try again.
Fields - <Add custom field name> <only the fields out of below 4 that are empty to be mentioned in the error'>
1. Tax Return Required (Home)

2. Tax Vendor (Home)
3. E-List included (Home)
4. E-List Reason of Inclusion (Home) '



3) Note - In case of List view multiple records update, if condition matches for 4 out of 5 records, 4 record fields should be checked and error should come for the 5th record only.

0 REPLIES 0