Copy details from form field to another. Disable when not required. | XM Community
Solved

Copy details from form field to another. Disable when not required.


Userlevel 1
Badge +3

I have a survey where I need to get the SPOC details for 2 projects. I want to create a form where you enter the SPOC details for the first project and then if the SPOC is the same for the 2nd project too, then the detail needs to be copied to it. Else, it should be blank and allow details to be entered.
Preferably, same page copy without requiring to go to another page.
I tried using Carry Forward Choice & Piped Text but it does not work as I intend it to. Can anybody help? Thank you in advance.

image.png

icon

Best answer by TomG 8 July 2021, 14:57

View original

4 replies

Userlevel 7
Badge +27

To do it on the same page you need to use JavaScript. You can use a click handler on Q4 to update Q5 using the data in Q3. I suggest making Q4 a multi-select (checkbox) instead of single select (radio).

Userlevel 1
Badge +3

Can you pls help with the code as well. I am sorry to be asking you to do this for me but I am not from a coding background. Thanks in advance.

Userlevel 7
Badge +27

No, sorry. I don't have the time nor inclination. Paying clients keep me busy.

Userlevel 1
Badge +3

Apologies for disturbing you. Thank you so much for all the help you provide and the support you give.

Leave a Reply