Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#3 2013-06-11 09:13:00

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

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

Board footer

Powered by FluxBB