Power Pages:

Microsoft Power Pages is a secure, enterprise-grade, low-code software as a service (SaaS) platform for creating, hosting, and administering modern external-facing business websites.

1.Create one text field in your main form in crm entity

power Pages

2.Go to power pages management create a new basic form in the above step main add it

3.Create web template, page template, web page 

4. In web template writhe jQuery code converting the text field in to option set value type

{% block main %}
{% entityform name:”Text-Optionset” %}
{% endblock %}
<script>
$(document).ready(function () {  
    var textFieldId = ‘#vijay_name’;  
    if ($(textFieldId).length) {      
        $(textFieldId).hide();      
        var initialValue = $(textFieldId).val();      
        var options = [
            { value: “”, text: “Select an Option” },
            { value: “Option1”, text: “Ram” },
            { value: “Option2”, text: “Ramesh” },
            { value: “Option3”, text: “Rajesh” }
        ];        
        var $dropdown = $(‘<select></select>’)
            .attr(‘id’, ‘dynamicDropdown’)
            .css({
                width: $(textFieldId).width(),
                padding: ‘5px’
            });      
        $.each(options, function (index, option) {
            var $option = $(‘<option></option>’)
                .attr(‘value’, option.value)
                .text(option.text);          
            if (option.value === initialValue) {
                $option.attr(‘selected’, ‘selected’);
            }
            $dropdown.append($option);
        });
        $(textFieldId).after($dropdown);
        $dropdown.change(function () {
            $(textFieldId).val($(this).val());
        });
    }
});
</script>

5. Give table permissions that entity

6.Sync and preview that web page we can see the output like this

For any Help or Queries Contact us on info@crmonce.com or +91 9493926112

https://www.crmonce.com/overview-of-copilot-in-dynamics-365-sales/