
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 02:30 AM
Hi All,
Am trying to pass the current values from catalog item to sp server side script. And its not working..
Catalog item form:
Client script : On submit
Widget code:
Can anyone guide me in here.
Any help is appreciated!
@Raghav Sharma , -- Please suggest on this.
Thanks in advance!!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 02:42 AM - edited 01-05-2023 02:43 AM
try below:
$scope.page.g_form.getValue('var_name');
If you are able to get the variable value with this code, then you can pass it from server to client using c.server.update() and get it through input.var_name;
Also pass $scope as parameter in you 1st line client script function.
Raghav
MVP 2023

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 06:07 AM
Thank you Raghav!
I have used in the client side , but value is not coming into the alert:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 06:23 AM
@Community Alums it should be before c.server.update() maybe in line no.6
This was a working code and has been used many times.
Raghav
MVP 2023

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 07:02 AM
Tried that as well, that also not working..