Reset Fields in a form

I have a form application and need to reset field values from a PHP method. Ex: Form shows list of student names, start times and finish times in a form. I have a button linked to a PHP method called “Clear” and when clicked it needs to reset fields to have blank values. (reset fields to default values/blank values)

{Student1_Name} {Student1_Start_Time} {Student1_Finish_Time} [Clear Student1]

{Student2_Name} {Student2_Start_Time} {Student2_Finish_Time} [Clear Student2]

{Student3_Name} {Student3_Start_Time} {Student3_Finish_Time} [Clear Student3]

When button [Clear Student1] clicked I need to clear/reset all the values of {Student1_Name}, {Student1_Start_Time} and {Student1_Finish_Time}

Could someone please tell me how I can archive this? Is there a scriptcase macro to reset a field?