Dynamically updating field title text

Dynamically updating field title text

I need to create a simple Form which has two single line text files, let's call them "Name" and "Response".

Initially the "Response" field must be hidden.

The "Name" field must give the prompt "What is your name?".   As soon as the user enters a name, the "Response" field must be shown, and the prompt for that field must be "Hello <Name>, how are you today?"  where <Name> is the value entered in the <Name> field.

How can I implement this?

So far, I've got both fields created and in the init script I hide the "Response" field.  In the update script for "Name" I unhide the "Response" field.  But I can't figure out how to set the prompt for the "Response" field.