function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krishna1krishna1 

Repeat element issue

Hi,

 

   i am creating repeat element using custom code from salesforce custom object , in this i have visible only mandatory fields. how to get the fields from custom object in repeat element custom code. please solve this 

 

Thank you. 

itsabsoluteitsabsolute

Hi Krishna,

 

Here is an example of something I did for a video repeater using a custom code element within:

 

<div class="gallery-item">
<div class="video-thumb">
<img class="video" alt={!VideoCaption__c} src='http://img.youtube.com/vi/{!YouTubeVideoID__c}/2.jpg'>
<a class="video-modal" href='http://www.youtube.com/v/{!YouTubeVideoID__c}?version=3&enablejsapi=1&autoplay=1'>Link</a>
</div>
<p>
<strong>
<a class="video-modal" href='http://www.youtube.com/v/{!YouTubeVideoID__c}?version=3&enablejsapi=1&autoplay=1'>{!VideoCaption__c}</a>
</strong>
<br>
{!VideoDescription__c}
</p>
</div>

Anthony PicaAnthony Pica

How are you able to add Repeaters using the Custom Code page element? I was under the impression that it can only be done with the drag-and-drop elements like this: http://screencast.com/t/ymIcrIIIzC1

itsabsoluteitsabsolute

Hi Anthony,

 

To insert it, I clicked on the gear next to "Repeater" and added the "Custom Code" element to the Default View.

 

Laura

Anthony PicaAnthony Pica

Interesting, I wasn't aware of that before. Thanks! http://screencast.com/t/VvM3tiAAY