Change the default order for Choice Field in NewForm using CSS/JavaScript

g h 716 Reputation points
2021-02-01T08:41:42.3+00:00

As you can see, the default order and value for the choice field always the first option like below:

62330-snipaste-2021-02-01-16-39-38.png

Can we change this value to others.

I assume this could be done by CSS/JavaScript.

But I'm not sure how to do it , can anyone help please ?

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2021-02-02T03:08:23.8+00:00

    Hi @g h ,

    Sample code for your reference:

    62774-snipaste-2021-02-02-11-01-49.png

    The select title should be the same as the choice field name.

    Please check the source code in attachment file:

    62734-codeexample.txt

    Thanks
    Best Regards


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.