Skip to main content

Hi,

Can anyone help me with writing the below logic in Redirect URL in form settings -

If form mode is new and user is member of group A redirect to URL X

If form mode is new and user is member of group B redirect to URL Y

For everything else redirect to URL Z

Regards,

Korak

Hi Korak,

this could do it:

fn-If(fn-And(Is New Mode, fn-IsMemberOfGroup("Group A")), "URL X", fn-If(fn-And(Is New Mode, fn-IsMemberOfGroup("Group B")), "URL Y", "URL Z"))

Make sure you take "Is New Mode" and all the functions from the formula builder.

Regards

Philipp


Hi Philipp,

Is it possible to use Control value or variable in the url, to be dynamic


Hi Sojan,

afaik you can only use the three tabs provided by default (Common/Item Properties (columns)/Inline Functions)


Hello @Philipp Lucas

How would I do if > Is New Mode then sent to URL X and otherwise don;t redirect?

even better: if Is New Mode then redirect to URL X and if Is Edit Mode then refresh the form to Display Mode after it has been edited/submitted.

At moment, when the form is edited and then submitted for any changes >  then the form refreshes back to Edit Mode instead of to Display Mode.

fn-If(Is New Mode, "URL X", " ") 

or

fn-If(Is New Mode, "URL X", fn-If(Is Edit Mode, " ???? "))  < I tried with "Is Display Mode" but does not work.


Reply