Home > Forum > Forms > input pop-up window

input pop-up window
0

Hi All,
Is there a webcon function/action to invoke pop-up window to enter some value or person?
Idea:
- we want to have a "consult" button
- but we don't want to have a permanent consultant field on the form as it's a bit confusing to someone
- therefore the best solution would be to have some action in a way that when we click on "consult" path, window will pop-up asking who do You want to consult, it can be saved into hidden form field but in this way it will be only shown on-demand, when someone actually wants to consult

MVP

You could try to achieve something like that with javascript / form rules. Using prompt to get user input, and then setting value of a field.
Although i'm not sure if BPS allows setting values of hidden fields with JS.

I wouldn't recommend it to selecting a consultant as it's plain text field, not a dropdown, and users could type in anything.

Another take on this problem would be a checkbox called like 'Consultation needed' which would show 'Consultant' field after checking it.

WEBCON

Hello, you can try this approach: keep the "Consultant" form field in a group - collapsed by default - and add additional validation on path "Consult" (form rule), which will check, if "consultant" is not empty. If it is, it will display a pop-up, expand the group and set focus in the form field. See the example in the attachmenent.
Instead of collapsing and exapnding the group you can also hide and show a whole group or just the "Consultant" form field.