2 of 2 people found this helpful
Not sure how are you prompting it, but if you are using the prompt function the last field is for the default value:
prompt(message, pickList, fieldAreaWidth, fieldAreaHeight, password, required, defaultValue)
In your case:
$(prompt("Charged Effort (min)", , 100, 25, false, true, ActualEffort))
That should do the trick.
Re-reading, you might be asking that when the user fills the ActualEffort on that prompt, then the ChargedEffort to be changed... I do not think that is possible, because when you type it you are not saving it yet, so the filed its still on "" value until you save... Maybe someone else have a different input.
In addition to Daniel's response, yes Prompts will run in Business Rule triggers the conditions they will not run in is if the business rule trigger is fired by an internal process for example a workflow where there is no user interaction available. You can find full details on the functions and when/how they run in the online help:
Thanks very much for your feedback. I thought as much as you suggested about the actual effort value not yet being saved, hence it does not auto populate the charged effort.
Thanks Alasdair for the feedback.