Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2013-06-11 08:21:41
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
If else condition
If I am having an empty field then on click of that pop up a email box, Means I just want it to work like that
If the field is empty then on click pop up a mail box else not.
I want to show prices on request for few products only.
Offline
#2 2013-06-11 08:24:02
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
Re: If else condition
Please help me as soon as possible its urgent.
Offline
Re: If else condition
Hi
can you explain more? can you post the code you are using?
Offline
#4 2013-06-11 13:23:54
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: If else condition
<txp:if_custom_field name="your_cust_fld_name" value="">
Put code here that you want executed if custom field is empty.
<txp:else />
Put code here that you want executed if custom field contains anything, else remove txp:else tag.
</txp:if_custom_field>
Something like that, I assume.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2013-06-18 07:42:48
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
Re: If else condition
Hi
Thanks Uli this code very useful for me thank you so much
Offline
Pages: 1