locked
Set the choice column value as selected value in a list RRS feed

  • Question

  • Hi

    I have a choice column but i need to display its value to whichever value is the next option when opening the edit form .

    Thanks

    Paru

    Friday, September 18, 2015 12:41 PM

Answers

  • Hi Paru,

    We can use jQuery to achieve it. The following code for your reference, add the code into edit form page using SharePoint designer or add the code into a content editor web part in the edit form page.

    <script src="http://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("select[title='dropdown column name'] option:selected").next().attr("selected","selected")
        });       
    </script>

    Best Regards,

    Dennis


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.


    • Edited by Dennis Guo Tuesday, September 22, 2015 7:07 AM
    • Proposed as answer by SekThang Tuesday, September 22, 2015 7:19 AM
    • Marked as answer by Patrick_Liang Wednesday, September 30, 2015 9:35 AM
    Tuesday, September 22, 2015 7:07 AM