Expand my Community achievements bar.

SOLVED

need drop down choice to be copied to another row

Avatar

Level 6

Good day,

This may be an easy question, but I cannot get it to work.  I would like to choose from a drop-down list and have my choice enter a word in a different row.  Example:  The drop-down list choice in row 1 is "cell phone".  When chosen, the word "smartphone" would be automatically entered in row 3.  Row 3 is a text field.  It would be appreciated if someone can help me and provide a script.  I tried using the action builder and it doesn't work.  Row 3 still stays blank.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@islandgirl23 

Yes it can be done.

 

suppose you have 

1) dropdown field -> name of the field is phoneType

2) Text filed -> name of the field mobileType

 

SivakumarKanoori_1-1687840699496.png

 

open rule editor of the dropdown field and select the value commit and write below js:

 

if(this.value =="cellPhone"){

mobileType.value="smartphone"; 

 or  

guideBridge.resolveNode(mobileType).value="smartPhone";

}

 

SivakumarKanoori_0-1687840468203.png

 

Thanks,
Siva

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@islandgirl23 

Yes it can be done.

 

suppose you have 

1) dropdown field -> name of the field is phoneType

2) Text filed -> name of the field mobileType

 

SivakumarKanoori_1-1687840699496.png

 

open rule editor of the dropdown field and select the value commit and write below js:

 

if(this.value =="cellPhone"){

mobileType.value="smartphone"; 

 or  

guideBridge.resolveNode(mobileType).value="smartPhone";

}

 

SivakumarKanoori_0-1687840468203.png

 

Thanks,
Siva

Avatar

Level 6

Good day,

I did not check off that this was correct.....FYI I'm using Designer.  There is no "Value Commit" event to choose from.  What event should I choose?