Skip to main content
Participant
May 22, 2021
Question

IF Than Statement for Adobe DC

  • May 22, 2021
  • 1 reply
  • 408 views

Hello everybody,

Im having a really hard time and have no idea where to start.  I have researched plenty of forums but I am more confused than before.  I am creating an assessment for my clients and in the end, there is an average.  

Example

If text16 equal 1 than text 17 will say___________________________

If text 16 equals 2 than text 17 will say__________________________

If text 16 equals 3 than text 17 will say _________________________

If text 16 equals 4 than text 17 will say__________________________

 

Please help me with a formula to add this in so that text 17 will equal the statement.....

 

Thank you in advance!!!!

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
May 22, 2021

As validation script of "Text16" field use this:

if(event.value == 1)this.getField("Text17").value = "text goes here";
else if(event.value == 2)this.getField("Text17").value = "text goes here";
else if(event.value == 3)this.getField("Text17").value = "text goes here";
else if(event.value == 4)this.getField("Text17").value = "text goes here";

Participant
May 22, 2021

Hi Nessa,

I tried that and had no success.  If you don't mind reviewing the form.  Can I send this to you via email to see if you can fix?