Am trying to pass the values from catalog item to Service Portal server side script

Community Alums
Not applicable

Hi All,

Am trying to pass the current values from catalog item to sp server side script. And its not working..

Catalog item form:

JPRamyaPriya_0-1672913973488.png

Client script : On submit

JPRamyaPriya_1-1672914171749.png

Widget code:

JPRamyaPriya_3-1672914401919.png

 

Can anyone guide me in here.

Any help is appreciated!

@Raghav Sharma , -- Please suggest on this.

 

Thanks in advance!!

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Thanks Raghav, we changed the requirement.

View solution in original post

7 REPLIES 7

@Community Alums to make this work, you need to embed this widget in your catalog item/ RP variable using UI macro/ Ui page type variable.

 

$scope.page.g_form.getValue(''); works for embedded widgets.

Toy can keep that variable hidden.


Raghav
MVP 2023

@Community Alums did this work for you?


Raghav
MVP 2023

Community Alums
Not applicable

Thanks Raghav, we changed the requirement.