Contact to deal with variables during conversion?

Contact to deal with variables during conversion?

I got my button working in each contact to create a deal using this code

  1. contDetails = zoho.crm.getRecordById("Contacts",contId.toLong());
  2. PotentialMap = Map();
  3. PotentialMap.put("Deal_Name",ifnull(contDetails.get("Full_Name"),""));
  4. PotentialMap.put("City",ifnull(contDetails.get("City"),""));
  5. PotentialMap.put("Country",ifnull(contDetails.get("Country"),""));
  6. PotentialMap.put("State",ifnull(contDetails.get("State_Region"),""));
  7. PotentialMap.put("Street",ifnull(contDetails.get("Street_Address1"),""));
  8. PotentialMap.put("Zipcode",ifnull(contDetails.get("Zip1"),""));
  9. PotentialMap.put("Description",ifnull(contDetails.get("Description"),""));
  10. PotentialCreate = zoho.crm.createRecord("Deals",PotentialMap);
  11. PotentialMap.put("Lead_Type",ifnull(contDetails.get("Lead_Type"),""));
  12. PotentialMap.put("Cash_Or_Financing",ifnull(contDetails.get("Cash_Or_Financing"),""));
  13. PotentialMap.put("Layout",ifnull(contDetails.get("Layout"),""));
  14. PotentialMap.put("Property_Type",ifnull(contDetails.get("Property_Type"),""));
  15. PotentialMap.put("Type",ifnull(contDetails.get("Lead_Type"),""));
  16. PotentialMap.put("Zestimate",ifnull(contDetails.get("Zestimate"),""));
  17. info PotentialCreate;
  18. return "";
But I need to take it a step further.

When I click the "Create Deal" button I made, I want a pop up to ask me which property is the deal for? and when I chose a property I want the deal to be named the exact same thing as the property they chose.

Properties is a custom module, each entry in the custom module is put into the module via an external api.

Can someone help me with the code for this?