Set value for the action attribute in the form dynamically.