I was just wondering if there's any easy/built in way to dynamically have the labels on an upload form. Right now it's one form with very similar content but a few key differences. Rather than making two separate forms, just wondering if there's an easy way to have the static text change based on parameters in the url?
I could do it all with custom JS but realistically probably easier to simply duplicate the form but let me know if there's anything I'm missing.
Hello, if I understand correctly, you want to display different label text in a Form based on some URL parameters. There is nothing built-in to the drag-and-drop Form builder that would help you set up this type of dynamic label, but if you use the advanced editor you can implement conditional shortcodes that test the value of any URL parameter with the Views shortcode wpv-search-term, for example:
[wpv-conditional if="( '[wpv-search-term param="your-param"]' eq '123' )"]
<label>Text if your-param equals 123</label>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-search-term param="your-param"]' ne '123' )"]
<label>Text if your-param does not equal 123</label>
[/wpv-conditional]
You would replace your-param with the URL parameter you want to test, and replace 123 with whatever value you want to evaluate, or a blank string would test if the parameter is empty.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-search-term
Let me know if I've misunderstood the requirements here.