Auto fill form field with the same value as the last submitted record

Auto fill form field with the same value as the last submitted record

How do I fetch a value from the last submitted record so I can set that value as the default value on loading the form?