Renaming Choice DataType when presenter is set to tile


I am trying to rename a choice property display name based on a condition. There are three options.

Example: If condition 1 is met then the second option should be Coffee
If condition 2 is met, then the second option should be Tea

I am able to successfully rename it if I set the presenter of the property to input dropdown. As soon as I change it to the desired presenter of tiles, it no longer works and this code returns null.

var choices = fragment_presenter.get_template_data(‘choices’);

It seems to me that the template data option of choices is no longer available to the fragment presenter when the presenter is set to tiles.

Kind Regards,