sympmarc / SPServices

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.
MIT License
207 stars 62 forks source link

$().SPServices.SPArrangeChoices saving not working in SP2013 #32

Open Itsmesri opened 8 years ago

Itsmesri commented 8 years ago

I have bunch of radio buttons groups and showing the horizontally with ().SPServices.SPArrangeChoices. all radio buttons showing correct. but saving not working for them. If I remove this code everything work fine. I need to show horizantal and save data.

<script language="javascript" type="text/javascript" src="/dept/it/SiteAssets/jquery.min.js">//version jQuery v1.11.1 </script> //
<script language="javascript" type="text/javascript" src="/dept/it/SiteAssets/jquery.SPServices-0.5.8.js">// tried with SPServices 2014.02,SPServices 2014.01
</script> 

ChoiceArrange("Did the project implementation go as planned");
    ChoiceArrange("Did project communications meet business needs");
    ChoiceArrange("Was the project managed professionally");
    ChoiceArrange("Were the roles on the project clearly defined");

function ChoiceArrange(columnName){
$().SPServices.SPArrangeChoices({               
            columnName:columnName ,
            perRow: 5
    });

it is Sharepoint 2013

manishmody commented 8 years ago

I am also having same issue. I am using SPArrangeChoices to lay Choice column values horizontally. On new custom form, the code is working good. But on OOTB Edit form, the changes to the choice columns are not saved. If I remove the code, it works as expected.

rweaver56 commented 2 weeks ago

I am having the same issue in SP2016.

sympmarc commented 2 weeks ago

@rweaver56 - I think you're the first post here in about 8 years! I don't even have an instance of SP2016 available anymore, so I'm not sure I can help. If you want to post your code here, I could take a look, though.

rweaver56 commented 2 weeks ago

Hi Marc,

Thanks for replying to my question (after 8 years! 😃). We are moving to SE in a couple of months! Won't that be exciting?

I'm not sure what code you are looking for exactly. In my form I have the following: $().SPServices.SPArrangeChoices({ columnName: "Award", perRow: 4 })

Award is a choice column in the custom list with 4 choices. SPArrangeChoices works perfectly to arrange the choices, but it doesn't allow me to save the form. I'm getting a validation error that I can't leave the column blank when it is required. If I uncheck required, I am able to submit the form but it doesn't save the value in Award.

I have found some other js that effective arranges the choices horizontally, so it's not a deal breaker for me anymore.

Looks like I am using v 2014.01 (I don't have any control over that).

Rod Weaver

On Thu, Sep 12, 2024 at 4:09 PM Marc D Anderson @.***> wrote:

@rweaver56 https://github.com/rweaver56 - I think you're the first post here in about 8 years! I don't even have an instance of SP2016 available anymore, so I'm not sure I can help. If you want to post your code here, I could take a look, though.

— Reply to this email directly, view it on GitHub https://github.com/sympmarc/SPServices/issues/32#issuecomment-2347145833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHODO7VXYPYQIC422SAQNPLZWHYIPAVCNFSM6AAAAABODOG2FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBXGE2DKOBTGM . You are receiving this because you were mentioned.Message ID: @.***>