This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Remove Country field
Started 13 years ago by cheryledwards | 9 posts |
-
There are quite a few posts about removing the country field but some apply to a previous version and others don't seem to have the complete instructions from start to finish. I got into a bit of a mess taking instructions from one, then another, so now I need to start again.
I have the latest version of MachForm and I would very much appreciate complete instructions of how to remove the country.
Thank you.
Posted 13 years ago # -
The easiest way is using css to hide/remove the country field. Try to add these css code into your form :
#li_4_div_6{ display:none !important; }
In there I assume your address field id is 4, you need to change the id with yours. To see the address field id, you can go to emails menu -> click more option and go to "template variable" link in the bottom of the page.
MachForm Support
Posted 13 years ago # -
Thank you very much redityo for your prompt reply. So simple, so fantastic!
Posted 13 years ago # -
What if the address field is required?
Posted 13 years ago # -
Never mind, I realized it will be ok if I set the default Country to USA and then hide it.
Posted 13 years ago # -
This code to hide the country field doesn't appear to work on the latest version. Is there something else?
#li_1_div_2
{
display:none !important;
}Posted 13 years ago # -
for country field you should change the div element number to 6.
#li_1_div_6 { display:none !important; }
also make sure you put the correct address element id there. In that code, I assume your address field id is 1
MachForm Support
Posted 13 years ago # -
I can't seem to hid the country element since I upgraded to the latest version. The element is now longer div, but span. Not sure if that makes a difference, but how can I get hide it now?
Posted 12 years ago # -
It should be similar, such as this:
#li_1_span_6{ display: none !important; }
MachForm Founder
Posted 12 years ago #
Reply
You must log in to post.