Visualforce page code formatted inappropriately by IDE

Issue #1403 resolved
Pavel Klochkov created an issue

Following line of Visualforce page code formatted inappropriately by IDE

                gJQ(document).ready(function(){
                    setAppointmentDuration();
                    createLightningLookup('assignedto' , 'assignedtoid' , 'Contact' , true);
                    if({!householdflag} == true){
                        createLightningLookup('household' , 'householdid' ,'forcebrain__Household__c' , true);
                    }
                    <apex:repeat value="{!customFields}" var="f">
                        <apex:outputPanel rendered="{!$ObjectType.Event__c.Fields[f].Type == 'reference'}" layout="none">
                            createLightningLookup('{!f}s' , '{!f}sid' ,'{!$ObjectType.Event__c.Fields[f].referenceTo[0].name}' , false);
                        </apex:outputPanel>
                    </apex:repeat>
                });

Results to issue on lines 757 758

Comments (3)

  1. Scott Wells repo owner

    Ah, okay...I see. You're using tags inside of an embedded script tag to generate the script vs. generating the rendered content. Right now IC injects the tags for both Visualforce and Lightning (Aura and LWC) into the HTML markup. I'm going to have to see what's required to support this type of language interleaving. I have one thought, but if it doesn't pan out it could turn out to be a very difficult thing to fix. I'll let you know shortly whether the quick solution works or not.

  2. Scott Wells repo owner

    Unfortunately the simple approach didn't work. I'm going to need to dig into this a bit more. I'll keep you posted, but it may be a while before I can produce a safe fix for this.

  3. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  4. Log in to comment