The CreatorCon Call for Content is officially open! Get started here.

Field Message didn't get populated

Prataps135
Mega Sage

Hi EveryOne, 

Good evening,

I have created multi-row variable set from one for my cat-item. In which I have attachment field there I am trying to add g_form.setFieldMessage(), for attachment field but it is not working. Can you please help on this. The same method is working for other fields perfectly but not for attachment. 

Thanks and Regards
Pratap Singh Sisodia

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Prataps135 

it worked for me in portal and native both,

Attachment variable within MRVS

AnkurBawiskar_0-1741701075726.png

AnkurBawiskar_2-1741701146250.png

 

 

Catalog client Script - Applies to Variable Set, Select your MRVS, Type onLoad, UI Type - ALL

AnkurBawiskar_1-1741701105262.png

 

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

View solution in original post

5 REPLIES 5

Prataps135
Mega Sage

Sorry its 

g_form.showFieldMsg typo error please help me on this.

Ankur Bawiskar
Tera Patron
Tera Patron

@Prataps135 

Did you create the attachment variable outside MRVS and see if field message comes?

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Prataps135 

first of all Attachment variable cannot be added in MRVS due to OOB business rule

Seems you disabled that business rule and created that variable

Since OOB it doesn't support the attachment variable within MRVS, it might be having some limitation

AnkurBawiskar_0-1741700512852.png

 

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Prataps135 

it worked for me in portal and native both,

Attachment variable within MRVS

AnkurBawiskar_0-1741701075726.png

AnkurBawiskar_2-1741701146250.png

 

 

Catalog client Script - Applies to Variable Set, Select your MRVS, Type onLoad, UI Type - ALL

AnkurBawiskar_1-1741701105262.png

 

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