SharePoint 2013 Markup Code funziona all'interno del portiere, ma non come codice incorporato in WebPart (EmbeddedForfield)?

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/80883

Domanda

On SPO 2013 cercando di distribuire un codice di markup personalizzato per legare un elenco

Codice di markup funziona quando è stato inserito in caricata via SPD vs incorporamento della pagina del sito del codice WebPart (EmbeddedFormfield)

Ho questo codice funziona perfettamente quando utilizzo SPD 2013 e mettolo nel portiere Posiceholdermain con SPD 2013. Ma se utilizzo Spo Modifica pagina Incorpora il codice incorporato Non legherà i dati al controllo a discesa.Non ottenere nulla nel controllo.

.
<div id="uploadDiv">
   <label id="fileSelectorLabel">Select a file: </label>
   <input id="uploadInput" type="file"/>
   <script id="selection-options" type="text/x-jsrender">
    <option value="{{>#data.get_item('Name')}}#{{>#data.get_item('Title')}}#{{>#data.get_item('Department')}}">
      {{>#data.get_item('Name')}} 
    </option>
   </script>
   <select id="FacultyLookup">
   </select>
   <input id="clearUploadFormButton" type="button" value="Reset"/>
   <input id="uploadFileButton" type="button" value="Upload"/>
</div>
<div id="message">

</div>
.

o è il problema che non è possibile avere chiamate ai file jQuery dal frammento di embed.

È stato utile?

Soluzione

One technique you might try is using a Content Editor Web Part. To ensure SharePoint doesn't mess with the code, you could add the code in a text file to the site. Then in the properties of the CEWP, reference the URL to the text file. This will render the contents of the text file in the web part.

enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top