[Help] Modal Buttons & Forms

Jordan14
Giga Expert

Hello,

I'm looking to create a modal button in the service portal which displays my password reset form.

Anyway to achieve this?

I've seen some similar posts and it doesn't seem to help me.

To start with, I've used "Serviveportal.io" code to display the modal, but I haven't had any luck with trying to display the password reset form.

 

Any help is appreciated.

Thanks,

Jordan

8 REPLIES 8

Your widget sys_id and the catalog item sys_id are the same.

 

Referencing your code above, put the sys_id of the widget you'd like to call in the line below

widget: "752893094f45978021a168d18110c713", //add widget sys_id

 

To get the widget sys_id, navigate to Service Portal -> Widgets, locate the widget, right-click on it, and select Copy sys_id. Alternatively, open the widget, click on the hamburger icon in the upper left, and select Copy sys_id

 

Next, you want to place the sys_id of the catalog item you want to call in the line below

widgetInput: {sys_id: "752893094f45978021a168d18110c713"} // add cata item sys_id

To get the sys_id of the catalog item, follow the same steps as you did for the widget, only you'll navigate to Service Catalog -> Maintain Items

 

 

Give that a try and report back

 

Hmm, Is there any way to do it without the use of a catalogue item. my password reset process doesn't use a catalogue item.

 

Or will I need to create a catalogue item for it?

Also, How do I create a widget for a specific catalogue item. Think this is where Im going wrong.

Gurpreet07
Mega Sage

Simply provide a link to change password page in a widget...

 <a href="/$pwd_change.do" title="Reset Password">Reset Password</a>