This topic contains 9 reply and 3 voices, and was last updated by Tareq Hasan 5 years, 9 months ago
Viewing 9 Posts - 1 through 9 (of 9 total)
Author Posts
January 23, 2014 at 4:27 pm 14715
Tareq Hasan Hi, So I have a question I want to insert multiple fields in a custom form this way: 1. I will have required fields 2. I will have non required fields. My question is, what do I have to do in order to hide a custom field that is not required if no value is inserted in the form. Example is this page: http://sftesting.net/rick/test-12-17/ I have no required fields with no value in them but they are displayed. - (I want to hide the non required fields that no value will be inserted.) Thank you I will wait for your reply.
January 29, 2014 at 4:59 am 14860
David David

Anybody that knows how to do this>?

January 29, 2014 at 8:17 am 14862
Mahi Mahi

Hello,

There are two option.

1. By editing plugin file, Check solution here: http://wedevs.com/support/topic/hide-meta-fields-that-are-not-filled/#post-10262

2. By using ACF plugin.

January 29, 2014 at 1:26 pm 14865
David David

OK so I did what it was mentioned on this link:
http://wedevs.com/support/topic/hide-meta-fields-that-are-not-filled/#post-10262
but is still not hiding the custom fields.
Here is the location of my form:
http://sftesting.net/rick/submit-your-business/

Here is the link to the published post:
http://sftesting.net/rick/testing-deal-123/
as you can see I did not insert any value in
Website URL:
Facebook URL:
Yelp URL:
Twitter URL:
Instagram URL:
Attachment Images:
And the name of the field is still getting displayed on the posting page.

You told me about number 2 but I don’t know what do I have to do with that. I did installed that plugin but what do I have to do next?

February 4, 2014 at 1:22 am 15048
David David

I am still waiting for a solution. Is there a way to hide text fields that are not filled out?, is there a way to make the entire field dissapear?

Thank you I will wait for a replay. I hope I will get a working solution.

February 4, 2014 at 1:30 am 15050
Mahi Mahi

Sorry for being late. Can you share your login details?
Please provide your site url, user login and password so we can check it. Also mark your reply as Private reply to keep it safe.

February 4, 2014 at 2:12 am 15051
David David This reply has been marked as private.
February 5, 2014 at 12:30 pm 15089
Tareq Hasan Tareq Hasan

I’ve updated a line, check if it works.

February 5, 2014 at 2:36 pm 15091
David David

Can you please tell me what did you had to change because I have another website where I have the plugin installed and I need to update that one to. what is the line that you have updated?

Thank you.

February 5, 2014 at 11:01 pm 15094
Tareq Hasan Tareq Hasan

Just change if ( $value ) { to if ( $value[0] ) {.

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