Having if and else dropdown statements

This topic contains 4 reply and 2 voices, and was last updated by Timothy 10 years, 1 month ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
March 1, 2014 at 5:21 am 15967
Timothy Hi, I am wondering is the plugin able to do if and else statement kind of action. Having the user to first pick from one dropdown and if the user picks A then the second dropdown will show items within the A category. If the user picks B then the second dropdown will show items within the B category. Also I am wondering how does editing the post works. For example when I go to the link: http://www.URL.com/listings/create-listings/ It is always creating a new posting. How do I edit the posting? Thanks!
March 1, 2014 at 10:41 am 15979
Mahi Mahi

unfortunately, its not possible currently. Conditional fields feature will be added soon.

And, to edit posting you have to –

– create an edit page with short-code
– setup edit page from settings area

Then, users can edit their post from dashboard.

Documentation: http://docs.wedevs.com/post-editing/

March 1, 2014 at 11:27 am 15982
Timothy Timothy

I created the page called Edit Listings

Added the [wpuf_edit] into the post

Then within the User Frontend page I went to general and then modified the Edit Page to:
Edit Listings

Right now when I entered the page it shows edit listings but then what if I have different form? and how do I state that which post id it is that I am editing?

March 1, 2014 at 11:33 am 15985
Mahi Mahi

users can edit their post from dashboard and you don’t have to worry about different forms. It will automatically pickup the right one by it self.

March 1, 2014 at 12:12 pm 15987
Timothy Timothy

It’s actually not a post. It’s actually one of the theme’s location taxonomy that I am editing. I’ve been able to create the form but editing doesn’t work.

Also I am thinking about implementing on a page template to do the Javascript:

<script>
	function showHide()
	{
		var dllarea = $("#dllarea");
		
		if(document.getElementById("dllarea").selectedIndex == 0)
		{
			document.getElementById("dlllocation").options.add("Item1");
		}
	}
</script>

Is there any way to add id to the form field or add onChange=”showHide” on the field?

Viewing 4 Posts - 1 through 4 (of 4 total)