How to configure the UI ACTION "Close Incomplete" to FSM WORKSPACE

ItayB
Tera Contributor

ItayB_0-1761472321525.png

 

I have these 2 records, I assigned them to WORKSPACE using Workspace Form Button and Format for Configurable Workspace

I typed the following code in both:

g_form.submit('close_incomplete');

The button appears in FSM WORKSPACE but does nothing, (it should raise POP UP like in BACK END and then move the STATE to CLOSE INCOMPLETE

 

 

ItayB_1-1761472660996.pngItayB_2-1761472683623.png

 

ItayB_3-1761472707002.png

ItayB_4-1761472733232.png

 

 

 

Please help me to make it work like in the back-end. 

 

ItayB_5-1761472763438.png

 

1 REPLY 1

Sarthak Kashyap
Tera Guru

Hi @ItayB ,

 

I tried your problem in my PDI and you can use serviceNow API called - "g_modal" this will help you to show pop up in workspace. 

 

Can you please try below code 

 

g_modal.showFields({
			title: dlgTitle, 
			fields: fields,
			size: 'md'
		}).then(function(fieldValues){}

 

For reference you can also check offical documentation from serviceNow - Link 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak