we are using {embed_url} in a hidden field, however i want to strip the URL so it only shows the slug after
eg, if domain is https://www.domains.com.org/urlstogo/hello1 it will only show /urlstogo/hello1
Is there a way to do this, and also have it work for email routing, so i also dont have to put the entire URL in the routing section?
You can remove the merge tag {embed_url} from the default value for the field. This code will handle populating the field with the slug. Because that is done when the form is first loaded, you can base routing or conditional logic on that field.