andycucca
Forum Replies Created
-
Hello,
same fatal error problem also with the theme Enfold. So I disabled the Pro plugin, but I have some other critical issues around, so I was obliged to deactivate also the free plugin. After this all returned normal.
Ok, I will wait for some update.
thanks
Hello,
Many thanks for your invaluable help. I checked your function and I think it’s fine for the required fields, but it doesn’t seem to be a check that ensures that at least one of the two fields has been filled out. I err?
As discussed above, the user is required to fill in one of the fields “Fide ID (number-4)” or “National ID (number-6)” or perhaps both fields. So if the two fields are empty, an error message should be triggered.Kind regards
Andrea
Well, I will wait for your feedback.
Thanks for your he,lp,
Andrea
Hello,
Hope you doing well.
Yes, it’s possible to have value for both fields, ID Fide (number-4) and National ID (number-6).
About the visibility conditions, I clearly understand your suggestion, also I know how to use visibility very well, but in this situation it is not applicable. I cannot make the fields disappear if ID fide is not filled in and so on, the user would be confused by this behavior, this is not OK.
I think it is mandatory a custom PHP or JS functon, to make this custom validation in the form, I do not see other reasonable possibility.Thanks for your support
Andrea
Hello,
sorry if I was misunderstood, I definitely wasn’t clear enough.
If ID Fide (number-4) is entered, the other fields on the same line must be “required”, so the user must fill them, also if f National ID (number-6) is entered, the other fields on the same line must be “required”, so the user must fill them
The use case is quite simple:
– the user fill some data in the form
– the user press the “pagamento” button
– if the validation rule is OK, he can go to the next step, if not he receive an error message, for example “Have to fill at least one FIDE ID or Nat ID”, another example “FIDE ELO is required”, and so on.Thanks again for your help
Andrea
In other pages with forminator forms identical to this one, but with a different ID code, I have to apply the same validation rule. Therefore it is important that there are no problems if different users are doing the validation on different Forminator forms, avoiding conflicts using the same global variable.
Thanks, you can close the ticket.
If inhibit the selection of further meals in select-4 field is too difficult, maybe it could be enough send an email warning that the number of 200 seats has been reached or, for example, that at 190 seats the system warns that 200 it is probably about to be reached soon.
Thanks again
- This reply was modified 8 months, 3 weeks ago by andycucca.
Hello,
Actually in the form there is not a limt numer to decrement, I think I have add an hidden calculation-5 field fixed to 200 and you can use it to manage it.
Therefore the logic is that each submission made must decrease the calculation-5 field by the number of meals indicated in the select-4 field. When the number in calculation-5 reaches 0, we have to inhibit the selection of further meals in select-4 field.
The form with hidden calculation-5 field is avalaible here: :https://app.box.com/s/6ctku5jmnw8ekujkeh8ny7x7vsq6p9d0
Thanks in advance for your help and kind regards
Andrea
You will find the form at the following link: https://app.box.com/s/2ffv2z95vzkhn0eve0jjlunqdr2y38y1
The field is {select-4} = pranzo convenzionato that can have a number of meals to decrement from 0 to 6.
Have a nice day, regards
AndreaYes, it is absolutely correct.
Thanks
Thanks for your answer, it is very useful
You can close the ticket now.
Best regards
Andrea
Greetings,
I have come to the conclusion of writing a custom function, regarding forminator I only need a couple of pieces of information:- the function must be activated by pressing the button on the 1st form forminator-research-player-form-export.txt
- the function must read the data present in the two fields of the form: number-1 and name-1 and transfer them as input variables to the function
- the function processes the data and at the end must write in form 2
forminator-registration-al-torneo-form-export.txt a series of data to fill the form, in particular: number-5, radio-2, name-1 and name-2
I just need to understand how to manage the inout and output steps to make the custom function work
Link to the export of the 2 forms:
https://app.box.com/s/slqjsh65mg1gkf7rrid8ll76o7an88gf
https://app.box.com/s/moleqb3pakp7e8koqt3ctr3dnzszg0fz
At the end of the payment with stripe, I would need a hook to start a function for writing the data present in form 2 to a database.
That’s all Thanks in advance for your helpHave a good evening
AndrewHeelo Kris,
Thanks for answerring …. I am not so confident about your solution, but I appreciate your help.
Have a nice day
Andrea