Pages - Problem with field of type Selection of a single option

Hello

We have the following field of type “Selection of a single option” named “c_provincias” with all the provinces of Spain (Image 1 marked in red).

When we apply the changes, you can see that Yext adds a numeric code and an uppercase key (Image 2 marked in red).

In our code we use this field to make the url and the title of the page, but Yext returns the value of the key in uppercase (Image 2 marked in red) when we want it to return the value we entered (Image 2 marked in blue).

This is possible?

Thanks

regards,

Hi Sergio,

Yes, you should be able to use the formatOption helper documented in this article.

Just pass the desired value to the helper as the first argument.

Please let me know if you have any questions.

Hi Luc

It´s working!!!

Thanks

regards,