locked
infopath sharepoint dispform mess my code RRS feed

  • Question

  • on a sharepoint site i have a list where i would like to change the order of some elements of my dispform.

    The easiest way i found was to modify the dispform in Infopath. And here is the shity part :(

    i found that infopath transforms the code completely.

    Here is an example of a <select>

    I let you admire the transformation.

    BEFORE INFOPATH MY CODE LOOKED LIKE THIS

    <select class="ms-RadioText" title="Rubrique" id="ctl00_m_g_2239bf6b_dc97_4e36_8c2e_7a3ba11d46b5_ctl00_ctl05_ctl11_ctl00_ctl00_ctl04_ctl00_DropDownChoice" name="ctl00$m$g_2239bf6b_dc97_4e36_8c2e_7a3ba11d46b5$ctl00$ctl05$ctl11$ctl00$ctl00$ctl04$ctl00$DropDownChoice">
    
                        <option value="" selected="selected" class=""></option>
    
                    </select>

     

    AFTER  INFOPATH MY CODE LOOKED LIKE THIS

    <select style="direction:ltr" title="" tabindex="0" originalid="V1_I1_D16" formid="ctl00_m_g_3b6ba9b4_b0a4_4cc5_880f_f80fc78fd04a_FormControl0" viewdatanode="17" direction="ltr" wrapped="true" class="q_1ReQGgUtfDyxuuKu_0 m_1ReQGgUtfDyxuuKu_0 aj_1ReQGgUtfDyxuuKu_0 au_1ReQGgUtfDyxuuKu_0" scriptclass="DropDownList" id="ctl00_m_g_3b6ba9b4_b0a4_4cc5_880f_f80fc78fd04a_FormControl0_V1_I1_D16" onblur="return (DropDownList.OnBlur(this, event));" onfocus="return (DropDownList.OnFocus(this, event));" onchange="return (DropDownList.OnChange(this, event));">
    
    <option value="">
    
    </option>
    
    </select>

    WTF?

    Have you guys had some issues with that?

    now it's time to speak out :)

     




    • Edited by wadada Friday, July 29, 2011 10:01 AM wtf
    Friday, July 29, 2011 9:52 AM

Answers

All replies

  • You actually do not need InfoPath to do that. You can create a new display form in SPD and re-arrange elements and once it's working you can set it as default. To undo InfoPath control go to list settings - form settings (under general settings), and change it from form options.
    AK
    Friday, July 29, 2011 11:09 AM
  • found answer here
    • Marked as answer by Emir Liu Thursday, August 4, 2011 5:44 AM
    Wednesday, August 3, 2011 12:18 PM