Is it possible that after the user clicks submit, the form is later sent automatically to smf post?
Is it possible that after the user clicks submit, the form is later sent automatically to smf post?
SMF?
Sorry my bad
SMF = simple machine forums
If this is not possible, please give me a guide of how to accomplish the following
I want to do the following
1. Teams enter the information requested by the forms
a. my forms are setup for teams to challenge other teams
b. they need to choose time, date, place, etc...
c. once they click submit, this information is sent to both the team being challenged
and the team challenging
d. I got this far
2. How can I make a page were the Team being challenged is able to ACCEPT or DENY the challenge.
3. Wether they accept or deny the challenge, it will in a public page so that people can see it.
4. Forms can only be used by teams that are registered, what I am planning to do, is set up users for each team, they are the only ones able to sumbit a challenge
5. I am to be able to keep track who made the challenge (which user) for example if I login as Team A, then when I do the challenge, it will show that Team A made the challenge, so that this way nobody makes false challenges to other teams
anyone?
If you were fine with the challenge being sent via an email notification, and the acceptance being created as a post then what you could do is...
- Setup the Challenge Form
- Setup the Notification so that it emails to a person associated with the team that is being challenged using the Routing capabilities of the Admin Notification.
- In the Notification Body create a link to the page containing the Accept Challenge form, and use the form field values to pass values to it via the query string (ex. http://mydomain.com/acceptform?date=DATEVALUE&place=PLACEVALUE&time=TIMEVALUE and so on).
Create your Accept Challenge Form. On the fields you want to populate dynamically based on querystring values being passed to it, edit them and go to the Advanced Tab and check the "Allow field to be populated dynamically" checkbox and give the field a parameter name equal to the querystring name that you are using to pass data to it (ex. date, place, time, etc.).
Now when you load that form and pass those values to it they will be pre-populated.
You can then setup your Accept Challenge Form so that it creates a WordPress post with the form data, then it would be visible by the public.
As far as access control to forms, etc. goes you would have to use a plugin like the Members plugin by Justin Tadlock to control access to the pages containing the form.
This is probably one of many ways you could implement this. You could do it a variety of ways if you really got creative and think outside the box. Gravity Forms is a tool and can be extended in many ways via creative use and some custom PHP code. However, the example above doesn't use any custom code.
Thanks Carl! its great to get help. I will give it a try and see what happens. What I want to know is
I know I can use the Member plugin by Justin, which I did installed, but once the Team Leader logs in, is there a way attach his name to the form, for example if he sends out the form, it shows which user sent it. This is to avoid false challenges from others teams and makes it 100% reliable.
You could add a hidden field that stores the username of the person filling out the form, although you would have to write some custom code that pre-populates that field with the username of the logged in WordPress user.
do you have a manual on how to populate dynamically based on querystring values being passed
I am kind of lost, if you have a user manual, it would be great
To populate a field dynamically using the query string you would do the following.
- Edit your form
- Edit the field you want to populate dynamically
- Select the Advanced tab
- Check the "Allow field to be populated dynamically checkbox"
- Enter a parameter name for the field in the UI that is displayed. This parameter name is what you use in the querystring to pass data to the field.
- Save your form
For an example see this screenshot:
Now with the form field setup this way you can pass data to it in the querystring using the parameter name you setup above. For example:
http://mydomain.com/myform?firstname=Bob
firstname was the parameter name we setup for the field we want to populate dynamically in the steps above.
Carl,
thanks for your reply. I got the form setup, but I am not sure how to do the querystring. Do you have any guide on how to accomplish this? I'm lost on how to do the following:
- In the Notification Body create a link to the page containing the Accept Challenge form, and use the form field values to pass values to it via the query string (ex. http://mydomain.com/acceptform?date=DATEVALUE&place=PLACEVALUE&time=TIMEVALUE and so on).
Following either of these tags will lead to a ton of examples:
http://forum.gravityhelp.com/tags/querystring
http://forum.gravityhelp.com/tags/query-string