Multi-row variable set stopping form submission on portal only

leahdany
Giga Guru

Important note: I am able to submit the record producer (RP) in native with the mutli-row variable set (MRVS) with expected results. I have a RP that was working fine on the HR portal without the MRVS, but as soon as I added the MRVS when I click the submit button from the portal the submit button stays stuck on "Submitting" and never actually submits. The error I receive in my browser console says "(g_form) [NOACTION] Could not find UI Action: submit". 

When I looked this up in the community I came across a thread that said they had to change the widget instance from these OOB widgets "SC Catalog Item Deprecated" to "SC Catalog Item" and it worked. I did this in my PDI and it works fine. When I did the same in the client's instance I received 3 distinct errors:

  1. Failing widget: 'SC Catalog Item Cloned' (this was my cloned SC Catalog Item widget)
  2. js_includes_sp.jsx?v=09-20-2018_1514&lp=Thu_Dec_20_07_39_08_PST_2018&c=27_389:67257 Server JavaScript error Cannot call property size in object com.glide.script.fencing.ScopedChoiceList@10347c6. It is not a function, it is "number".
  3. Line number 74 (this is in reference to the server script line 74 which ties into #2)

Line 74 of the server script for that widget is a part of this block of code:

71 var clGenerator = new GlideChoiceList();
72 var choiceListQuantity = clGenerator.getChoiceList("sc_cart_item", "quantity");
73 var choicelistQuantityData = [];
74 for (var i = 0; i < choiceListQuantity.size(); i++) {
75 var choice = choiceListQuantity.get(i);
76 if (!isNaN(choice.getValue()))
77 choicelistQuantityData.push({value : parseInt(choice.getValue()), label : choice.getLabel()});
78 }

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

leahdany
Giga Guru

SN answered back saying to use the widget "SC Catalog Item" which I already knew (and is posted in the original question). As I stated before it does work once you use that widget, but once you clone and customize it it no longer works.

View solution in original post

6 REPLIES 6

Niranjan Danda
Tera Contributor

I have the same exact issue, please let me know if you figured out anything.

 

Thanks,

Niranjan.

Niranjanreddy,

The client has put in a HI ticket for this issue. Once SN responds with a fix I will post it.

leahdany
Giga Guru

SN answered back saying to use the widget "SC Catalog Item" which I already knew (and is posted in the original question). As I stated before it does work once you use that widget, but once you clone and customize it it no longer works.

Thanks for Updating on this. even i raised a ticket to servicenow.  i will let you know once they get back to me. Also please let me know if you resolved this using some-other workaround.

 

Thanks,

Niranjan.