Alert from script

Alert from script

trentearley
Advocate Advocate
665 Views
2 Replies
Message 1 of 3

Alert from script

trentearley
Advocate
Advocate

Hello, is there any way to script an alert to run on edit or transition that would alert the user that a field needs to contain a value.

Example:

if(item.workflowActions[i].transition.transitionID === 376){

if(item.DATE_1 !== null && item.DATE_2 !== null){

//perform an action

}

else{

alert("Dates 1 and 2 need to be filled out");

}

}

Thanks,

Trent

0 Likes
Accepted solutions (1)
666 Views
2 Replies
Replies (2)
Message 2 of 3

gasevsm
Alumni
Alumni
Accepted solution

YEs, can use validation scripts in WF actions to alert users.

* See this basics description. http://help.autodesk.com/view/PLM/ENU/?guid=GUID-36765D01-C50A-4C64-AFAD-1F71684A8259.

* For validation samples, see this help examples page. http://help.autodesk.com/view/PLM/ENU/?guid=GUID-362E481D-19F1-413F-B73C-8115E6E604F0

HTH,

 


Martin Gasevski | Fusion 360 Team Product Manager
0 Likes
Message 3 of 3

trentearley
Advocate
Advocate

Thank you!

message.push() is what I was looking for.

Trent

0 Likes