Hi everyone,
I am a newcomer to JavaScript, I'm seeking guidance on coding a solution for a specific issue. I aim to design a series of name input fields within a block of my survey, where respondents can enter the same answer in the Text Entry fields across various questions. For instance, they might input 'aa' for question 'friend' [PISID: QID21] and 'angry' [PISID: QID22].
My goal is to consolidate any duplicate responses from these text entry fields and present them as unique statements in a Side-by-Side question (specifically, QID18, 'How close are you to the following individuals?') within Block 2.
I've experimented with several display logic configurations, primarily utilizing 'AND' and 'Is Not Equal To' conditions with the piped text from previous text entry questions. However, applying choice display logic across all 18 form field questions has proven challenging.
Could you assist me in crafting the necessary code? Or perhaps offer suggestions to address this issue?
I've noticed that the requisite API may not be activated for my account, and I'm uncertain if its utilization is essential for the successful implementation of the code.
Thanks a lot!
![](https://uploads-us-west-2.insided.com/qualtrics-us/attachment/b7f511eb-dd16-413f-ab23-4a41dfbb7af2.png)
![](https://uploads-us-west-2.insided.com/qualtrics-us/attachment/fd01c6f0-48ad-41b6-a32c-fb2d1d3c7d2f.png)
![](https://uploads-us-west-2.insided.com/qualtrics-us/attachment/3e612272-0209-46fd-90cf-3458a1645806.png)