looking for a way to prompt a user for input (e.g....
# suiteflow
a
looking for a way to prompt a user for input (e.g. a "rejection reason") when clicking a button that was added via workflow (view mode only, as record will be locked otherwise)
r
How I have done it in the past was a custom workflow action that calls a simple Suitelet where the users enter their input. Suitelet also saves the input to the record.
a
thanks @rustyshackles that is also what i was thinking - did you have to add the button via wf action script then? i'm guessing you would have to because otherwise you can't control what happens on click of the button
r
Button was added via workflow, then transition to another state on button click which contains the custom workflow action script that calls the suitelet
Also found an article, but it uses a custom record instead of a field on the record. https://technologyblog.rsmus.com/netsuite/approval-workflow/
a
wow interesting - i work for RSM and didn't know about this article, didn't come up in my google search earlier - so recent too
looks like this solution assumes the transaction is rejected immediately upon clicking the button
i was thinking of a solution that would only transition to rejected once the reason was entered
i suppose you might be able to transition from another workflow on save of the record? or via script
r
Should be possible via script or you can also have a checkbox that you set along with setting the Rejection Reason in the record. Workflow then can use the flag to transition or not.