Alternative to JavaScript "confirm()" method in pre-save Work Item context

Description
SteffPoint
Posts: 79
Joined: Wed Mar 07, 2018 1:06 pm
Location: Germany

Alternative to JavaScript "confirm()" method in pre-save Work Item context

Postby SteffPoint » Thu Apr 02, 2020 1:23 pm

Hello,

I'm seeking for a possibility to return a prompt (or something similar) to a user when he saves a Work Item (which triggers for example a pre-save-Script).

The prompt should simply guarantee a confirmation of the user, that he really wants to save a certain edited field of the Work Item ("Are you sure you want to change field XYZ?").

For achieving this, I thought about building a pre-save-Script (JavaScript) for Work Items (using FMC Work Item Extension) and simply return the "confirm()"-method of JavaScript to the user from that hook script (https://www.w3schools.com/jsref/met_win_confirm.asp).

However, the confirm()-method from JavaScript needs the "window" to be instanced, which is not the case in a hook-script.

I would be grateful for any thoughts / solution ideas on this :)


Kind Regards,
Steffen

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: jackMl and 13 guests