I have a 3 separate field editors that have only template fields and is attached to a model. The template fields are populated by an inline JavaScript and I want to conditionally render each field editor.
When the field editors don’t have a render condition on them all the data shows properly. Once I conditionally render the field editors the data does not appear. I checked the console and all the data loads on page load and model query so the data is there but I don’t understand why it is not showing.
Here is the code handling the page load and refresh
$(document.body).one('pageload', function() { updateTemplateFields();<br> });<br> skuid.events.subscribe('models.loaded', function(updateResult) {<br> if (updateResult.models.BillableDays) {<br> updateTemplateFields(); //Displays result on requery<br> }<br> });<br>})(skuid);