sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Choice with space not shown

Open duncanspeidel opened this issue 7 years ago • 4 comments

I am working <choices> that takes the following structure: <CHOICES> <CHOICE>New</CHOICE> <CHOICE>Ready for staffing</CHOICE> <CHOICE>Draft</CHOICE> <CHOICE>Approved </CHOICE> <CHOICE>Rejected</CHOICE> <CHOICE>Completed</CHOICE> </CHOICES>

When I debug my app, the choice with space (<CHOICE>Ready for staffing</CHOICE>) is not shown. I have tried double and single quotes with the same result. Running Visual Studio 2019, against latest version of SharePoint.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

duncanspeidel avatar Oct 27 '19 19:10 duncanspeidel

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Oct 27 '19 19:10 msft-github-bot

If you want to create choice field in custom list in SharePoint add-in, the field Schema like below.

<Field Name="ChoiceField" ID="{cf2d0af1-2f4d-4284-b630-813159ed08ef}" DisplayName="ChoiceField" Type="Choice">
      <CHOICES>
          <CHOICE>New</CHOICE>
          <CHOICE>Ready for staffing</CHOICE>
          <CHOICE>Draft</CHOICE>
          <CHOICE>Approved </CHOICE>
          <CHOICE>Rejected</CHOICE>
          <CHOICE>Completed</CHOICE>
      </CHOICES>
</Field>

Untitled

You can create a new choice field and add choices with space in the UI to check if it works.

Dennis-LZ avatar Oct 29 '19 03:10 Dennis-LZ

Closing issue as "answered". If you encounter similar issue(s), please open up a NEW issue. Thank you.

msft-github-bot avatar Nov 01 '19 10:11 msft-github-bot

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 23 '20 06:01 msft-github-bot