Rocky Patel

Relative Path for Embed Forms

Discussion created by Rocky Patel on Oct 22, 2019
Latest reply on Oct 22, 2019 by Sanford Whiteman

Sanford Whiteman

I need to change the follow up url to relative path depending on a radio button selection.  See code below.

<div class="mktoRadioList mktoHasWidth" style="width: 380px;"><input name="pERContactUsFormType" id="mktoRadio_32448_0" value="Solutions and Product Inquiries" type="radio" class="mktoField"><label for="mktoRadio_32448_0">Solutions and Product Inquiries</label><input name="pERContactUsFormType" id="mktoRadio_32448_1" value="Client Service Requests" type="radio" class="mktoField"><label for="mktoRadio_32448_1">Client Service Requests</label></div>

So when someone selects "Solutions and Product Inquiries" the follow up URL should be /contact/thankyou.  If they select "Client Service Requests" follow up URL should be /contact/customer-service-thank-you.

 

Can something like this be done through JS?

Outcomes