Forum Replies Created
P.S.: there is a small bug that I noticed in submissions view:
I deleted a submission record, but there is still shown 1 submission in forms drop down menu on submissions view page, but the Trash button is not visible here, so it is not possible to empty the trashed record.
I manage to empty trash this way:
I went to form edit, clicked submissions, et voilá, trash link was visible now. I was able to permanently delete the trashed record this way.
But as mentioned, when you go to the regular submissions view, trash button does not come up – also not after selecting the form.
Hej again Mark,
thanks for your input!
The goal is the following:
I want to register a custom post type called “teams” with some custom taxonomies (f.e. type of race: running, walking, kids;)
Each team post has some custom fields:
1. teamcaptain (is billing first name and billing last name),
2. depending on the number of team members a set or rows with fields for team members first and lastnames, their gender, age, race time taken (will be added dynamically after the race) and if needed t-shirt sizes.
3. race type assigned via taxonomy
4. a custom field with order id
5. a custom field with company name if given
Now, when the order status is set to complete (or anything else like a custom status: paid or so), another action is supposed to push the form entries to the rest endpoint of the teams post type and the teams are automatically created.
outside the scope of wsforms:
Of course I must build a php API to set up the number of team members and ordered finisher shirts according to the submission records.
Then I will build another php method, that will extend the woocommerce my account page so that the customer can access their registered teams in their my account area in a separate tab. Here they should be able to edit their teams’ members names and shirt sizes, age and gender.
From what I read in wsforms documentation it should be possible to get this done with given actions feature, right?
I was being stupid 😀
I set up the form correctly, but didn’t test another order after I did that. And thought it wasn’t working, because it didn’t before I checked the enable Run Wsform actions checkbox in Woo tab of form settings.
Today I placed another test order and everything worked as expected: submission is visible!
Only question left is:
how can I also add the billing firstname, billing lastname, billing email address, billing company and order id in the submission record?
Yes, there is a “Save Submission” action added by default to the form.
See screenshot here: https://www.dropbox.com/s/xogk1gv8b0yu8uv/form-submissions1.png?dl=0
I would like to get the actions running for the correct order status, but I don’t understand how I can set this up.. I read the mentioned article, but I still don’t understand where this should be set.
The article says that I would choose the corresponding woocommerce order statuses that will trigger the action. I would like form submission to be triggered. But in form submissions action there is no woocommerce order status option, that I could choose from.
Hm its a bit confusing, because I would also like to see woocommerce infos with the submission: order id and billing firstname, billing lastname, billing emailaddress.
I sent a form export file via support contact form provided 🙂
Any help appreciated.
September 3, 2021 at 3:03 pm in reply to: Set prices in select price field conditionally by date? #65057
- This reply was modified 2 months, 3 weeks ago by Saskia Lund.
I used various conditional rules, where I made use of a hidden field that contains the current date in custom format Ymd
If this date is greater than, less than, etc, specific rows in the price select field are disabled and others are enabled.September 3, 2021 at 8:50 am in reply to: Set Maximum or Minimum Value of a number or range field conditionally #65031
I just found another solution:
when in maximum setting of the number field, you can select a field which will provide the max value. lets say field#13, then you must simply enter #calc(#field(13)) in the maximum setting of the number or range field.
thanks for your reply anyways!!