Support

Account

Home Forums General Issues Select Dropdown Inside Repeater With Mailto and Tel based on Selection Reply To: Select Dropdown Inside Repeater With Mailto and Tel based on Selection

  • @andisaleh

    Thanks for the response — see below with image and php that helps explain


    IMAGE EXPLAINATION:

    https://pasteboard.co/5fFEy9KEfp0o.jpg

    PHP CODE:
    PHP CODE HERE: https://onlinephp.io/c/ea1db

    -user goes to WP Page
    ->Adds Image, Title, etc
    -Select Dropdown – choice of PHONE or EMAIL

    If user Selects PHONE, it populates tel: before the subfield they enter of a phone number so it makes it a link

    If user Selects EMAIL, it populates mailto: before the subfield they enter of a phone number so it makes it a link