Skip to main content

#Typeaheadblock0 debatiendo

Hi everyone, 

 

I’m working on an OmniScript that includes a repeatable block on the Complaint Details

step. Inside the repeatable block, I ask the user whether they want to: 

 

 • Use an existing contact, or

 • Create a new contact

 

Based on this choice:

 

 • If the user selects existing contact, a typeahead component is shown to search and select a Contact record.

 • If the user selects new contact, a separate input field appears to capture the new contact’s details, which I later use to create a Contact record. 

 

The problem I’m encountering is this:

When I add multiple entries in the repeatable block and select “new contact” in the first entry, that choice applies to all repeatable items — causing the typeahead or new contact fields to show/hide in all rows together, rather than independently.

This prevents me from selecting an existing contact in one repeatable row and creating a new one in another. 

 

How can I make the conditional logic for the typeahead input work independently within each instance of the repeatable block? 

 

Thanks in advance for any guidance!

#Trailhead #Salesforce Developer #Omnistudio #Typeaheadblock #Repeatable Fields

2 respuestas
  1. 12 dic 2025, 09:42

     Unlocking the Per-Row Fix Use %

    Index% in conditional views for row-specific logic. 

    Easy Configuration: Radio: ContactType (New/Existing). 

    Display in Typeahead: {%ContactType%} == "Existing".  

     

    {%ContactType%} == "New" refers to a novel field.  

    Boom! distinct rows. Now try a few entries—mix 'n match works!

    @Steve Yagci If this helps you kindly let me know. 

0/9000

Hello all,

As the title says, I'm trying to create a typeahead on a flexcard with a dataraptor for the data source. Most tutorials make use of OmniScripts, and while that is easier, I'd like to try it out using a FlexCard.  

 

I'm trying to retrieve a list of accounts where the names contain the flexcard's input.

 

I followed this Add a Typeahead Input Element to a FlexCard (salesforce.com) but I'm not getting any suggestions:

FlexCard Typeahead with DataRaptor not giving suggestions

 

The data is fetched as expected in my DataRaptor:

Input: AccName

Output:  Accountsdataraptor.png

 

Here is the Action:

Am I correct in putting in {AccName} in Field Binding? I mapped it to AccName in the Input Map in the Action Properties. But what I don't understand is, I'm not getting the expected Accounts node back (check 1st image)action.pngI'd appreciate any help you can give. 

#Flexcard #Typeaheadblock #DataRaptor #Omnistudio

4 respuestas
  1. 7 dic 2023, 16:32

    I submitted a case today about the preview feature not working on FlexCards. Once I hear about the case, I will work on it to see if I can tell what is going wrong.

0/9000