Skip to main content
Participant
March 11, 2025
Answered

I want to create a form that the client can use to create a personalised quote for their client.

  • March 11, 2025
  • 1 reply
  • 408 views

I want to create a form that the client can use to create a personalized quote for their client. They want the option to select a clause option from a dropdown list of several clauses. So in short use a dropdown menu that then populates a field with the selected clause. I have managed to create a dropdown menu list but can't figure out how to populate the selected option from the list. Is this possible without having to write JavaScript. Thanks from New Zealand! 

 

Correct answer Nesa Nurani

You will need a script, let's say your dropdown field is named "Dropdown1" as custom calculation script of text field use this:

event.value = this.getField("Dropdown1").value;

This will populate the selected choice from the dropdown into a text field.

 


If you need to populate specific text for each clause, then you would need something like this:

var drop = this.getField("Dropdown1").valueAsString;

if(drop == "clause1")
 event.value = "put text for clause1 here";
else if(drop == "clause2")
 event.value = "put text for clause2 here";
//continue with 'else if' statements if you have more clauses

else
 event.value = "";

 

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
March 11, 2025

You will need a script, let's say your dropdown field is named "Dropdown1" as custom calculation script of text field use this:

event.value = this.getField("Dropdown1").value;

This will populate the selected choice from the dropdown into a text field.

 


If you need to populate specific text for each clause, then you would need something like this:

var drop = this.getField("Dropdown1").valueAsString;

if(drop == "clause1")
 event.value = "put text for clause1 here";
else if(drop == "clause2")
 event.value = "put text for clause2 here";
//continue with 'else if' statements if you have more clauses

else
 event.value = "";

 

Participant
March 11, 2025

Many thanks!

Liane