User Input

Jamsta1912
Tera Guru

Hi everyone,

As part of our internal Change process I've created a UI Action 'Withdraw', which (surprisingly) allows users to withdraw a Change that's in progress. The UI action is a button, and when clicked it sets the Change Status to 'Closed' and sets the close_notes to 'Change Withdrawn'.

Instead, I would like the user to be presented with a mandatory text input box when they click 'Withdraw', and for the contents of the input box to then be written to close_notes. What would be the best way to achieve this? I have found the UI Macro, ui_input_field, but I'm not sure if this is the way to go... and if it is I lack an understanding of how to make use of it. Any advice, much appreciated.

Regards
Jamsta.

2 REPLIES 2

Aaron40
Kilo Guru

Hi Jamsta.

Would it be easier to just make the close_notes field required when the button is pushed instead of making another field show up that pushes the data to that field?


Jamsta1912
Tera Guru

Hi Aaron,

Thanks for your response. Yes it would definitely be easier for me!

But, at the point the button is pushed, the close_notes field may not be visible on the form, because at early stages in the Change life-cycle it's on a tab that's hidden. Also, if I understand correctly, I think if the UI Action has run and the close_notes field then becomes mandatory, the user would at that point be able to navigate away without saving the record, and this would be after the UI Action has updated other fields in the record and saved it.

But.... that's not to say I'm ruling out the option.

Jamsta.