Значение поля не удаляется при изменении условия
-
Vitaly_4loud2Asked on January 22, 2021 at 09:07 AM
В форме текстовое поле List of Flight passengers (short text LFp), в которое собираем всех путешественников, которые внесли свои полетные данные.
LFp = main passenger + "|" - по умолчанию
Если выбрано значение Upload e-Ticket или Right Here - то должно быть
LFp = mainpassenger + "|" + assenger1 + "|"
Вопрос в том, что когда выбираем вариант Select a sgared flight или I haven't booked yet - значение LFp не возвращается к начальному, имя passenger1 продолжает там быть.
Вот условия, как это поле заполняется:
-
Sigit_WAnswered on January 22, 2021 at 10:05 AMJotForm Support
Hi,
Could you kindly share us screenshots for these conditions?
"The question is that when we select the Select a shared flight or I haven't booked yet option, the LFp value does not return to the initial one, the name passenger1 continues to be there."
and
"If the value Upload e-Ticket or Right Here is selected, then there should be
LFp = mainpassenger + "|" + assenger1 + "|""
I cloned the form, and I didn't know how to enter name for passenger1.
Could you please provide us more details, on "Right Here option" where does passenger1 gets its value from?
If you prefer to receive help in your native language, please let us know and we'll forward your ticket to our Russian Support Team.
Thanks. Regards.
-
Vitaly_4loud2Answered on January 23, 2021 at 12:36 PM
"If the value Upload e-Ticket or Right Here is selected, then there should be
LFp = mainpassenger + "|" + assenger1 + "|""
This screenshot was published in my first question.
"The question is that when we select the Select a shared flight or I haven't booked yet option, the LFp value does not return to the initial one, the name passenger1 continues to be there."
This variants haven't screenshots. I don't know khow to perform action 'Remove string value of the fields'.
I cloned the form, and I didn't know how to enter name for passenger1.
Yes, this is hidden text field in the section
If you prefer to receive help in your native language, please let us know and we'll forward your ticket to our Russian Support Team.
Yes, it will be easy for our communication I guess.
-
KrisLeiAnswered on January 23, 2021 at 06:19 PMJotForm Support
Hello,
Kindly try to replace the IF statement to "ALL" on the condition, it seems that the issue is caused by this statement and it will still trigger the condition if "ANY" of the rules match:
Please give it a try and let us know if the issue persists. Unfortunately, it seems that our Russian support team is currently unavailable but I will try to get hold of them once they are available.
Thank you.
-
Vitaly_4loud2Answered on January 23, 2021 at 11:44 PM
Dear KrisLei,
I don't understand your suggestion. We have a 'Select' element (dropdown list) without multiple choise.
So it impossible to select both variants together, i.e. conditions never will be true.
Am I right?
-
Johann_AAnswered on January 24, 2021 at 06:39 AMJotForm Support
Greetings,
Yes, you are right these conditions above cannot work because your field here, you can only select one condition only :
So what you can do is separate the Method of Input choice into 4 differents fields.
The conditions will work after this. If it's not what you are looking for please give us more details so we can advise.
Johann
-
Alexander_GAnswered on January 25, 2021 at 04:14 PMJotForm Support
Здравствуйте, Виталий! ;)
Я так понимаю Ваш вопрос остается в том, почему не меняется конечное поле после вычислений, если условия изменяются. Верно?
К примеру: - Когда вы выбираете вариант Select a sgared flight или I haven't booked yet - значение LFp не обнуляется.
Насколько я знаю, то конечное поле после логики оставляет значения, которые были до поступления новых значений. Я быстро просмотрел Вашу форму и не нашел значений, которые заменят конечное значение в LFp с предыдущего результата. В этом может быть причина того, что значение не обновляется.
К сожалению, из-за высокой нагрузки на форум я не могу сейчас уделять больше нескольких минут на один запрос. Но я обязательно вернусь к Вам как только нагрузка спадет и разберусь более подробно в Вашей проблеме.
Спасибо за понимание,
Александр
-
Alexander_GAnswered on January 26, 2021 at 08:06 AMJotForm Support
Добрый день, Виталий!
Извините за задержку с ответом.
Кажется, я нашел решения для Вашей ситуации.
Я добавил дополнительные условия полня LFp для значений Select a sgared flight или I haven't booked yet.
Кроме того, я добавил условие при пустом поле Method of Input:
Дальше, для полноценной работы я убрал дефолтное значение Method of Input в настройках поля:
После этого, значение поля обновляется при выборе разных методов.
Прикрепляю Демо-форму для наглядности:
Надеюсь, это как раз то, что Вам нужно. :)
С уважением,
Александр