# Melhoria no preenchimento de CPF no cadastro de clientes

Ao digitar parcialmente o CPF e alternar para outra tela, o campo de CPF era limpo quando o usuário retornava, forçando a redigitação.

Foi implementada uma correção para que, ao retornar à tela, o campo de CPF mantenha o conteúdo já digitado. O Consumer agora exibe um alerta de "documento inválido" se o CPF for incompleto ou incorreto, e o foco volta automaticamente para o campo, com todo o conteúdo selecionado, facilitando a correção.

<figure><img src="/files/V2FfQ8YBqqhU0iIQKFTu" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atualizacoes.consumer.com.br/pdv/anteriores/14.7.2/14.7.2.1/melhoria-no-preenchimento-de-cpf-no-cadastro-de-clientes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
