27 Posts
program
7 years ago
2
Topic

Hi 

I know url variable restriction on a field is possible, but I am trying to make restriction on a part of the url string. Would that be possible?

Best regards from Sixther

Get a VIP membership
7 years ago
0
Level 1

Hi program,

I think one solution would be to use Js / jQuery to analyse what's in your field.

You can insert Js / jQuery into your field by clicking on the blue arrow at the bottom of the modal box where you set your field.

The field's name (where you've to put Js) is "Script (JS)".

If you've other questions or if it doesn't work don't hesitate to come back to us.

Good continuation.

Ness

 

4229 Posts
Kadministrator
7 years ago
0
Level 1

If you need hard restriction (so that field does not show at all in the html) based on multiple url variables then probably some custom php code using  beforeRender plugin from Code pack is the way to go. If hidden field is enough you can do it using javascript as Eliot suggested.

Get a VIP membership