Need help to make field mandatory in multirow variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 05:45 AM
Hi Everyone , I have a requirement on catalog item , we have two variable and a multirow variable set(Test1) on catalog item. Our requirement is when we select 1 in first variable (Copier paper) and 2 in second variable (
Pens) then Field1 inside multirow variable set should become mandatory. Please see screenshot below
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 07:53 AM
Try doing an alert on the onload, and check the value you get from them in your variable set client script:
alert(store_gform_value.g_form.getValue('pens')); and show the result
Also make sure your variables (copier_reams & pens) have "include node" to true 🙂
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 07:59 AM
I applied this alert(store_gform_value.g_form.getValue('pens')); but not getting any popup. also I checked (copier_reams & pens) have include none as true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 09:54 AM
Okay, there should be a pop up in the portal. Try with just "alert('test');" and when you click on "add" it should come, once the multi row is loaded. If not there is something wrong in how it is setup. And just to make sure, the variable set should be on the catalog item =D
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 07:26 PM
Hi Sebastian,
Thanks for your help but the problem was inside {g_form: g_form} global variable ..It is not working..I got the solution in another way using g_service_catalog.parent.getValue() method and its working as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 09:35 PM
Best regards,
Sebastian Laursen