Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Insert text if custom field is blank
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Insert text if custom field is blank

Insert text if custom field is blank 13 years ago #25903

Hello,

I need to insert a text if an added custom field is blank.

Is there a way to do this? Any suggestion will be appreciated :)

Thanks,
M.
The topic has been locked.

Re: Insert text if custom field is blank 13 years ago #25916

  • jaku
Hello M.,

well this is a logic, that would need to be coded in the component. There is no easy way to configure such thing generally, so there is nothing like that possible at the moment.
So of course it is possible, but at a cost of adjusting the source code of the component.
Or it could also be realized as custom made plugin, that would look for this and enter the text e.g. to note field. That would be probably better, as you would not have to change the component sources and thus would prevent problems with upgrading to newer versions in future.

If you would be interested, we can implement such modification for you. Or, as the component is open source - you are of course free to do it yourself.
The topic has been locked.

Re: Insert text if custom field is blank 13 years ago #26066

Uhmmm...

should be great if I can use a SQL DECODE command during extraction of extra_extra_field_1 field.

So if the field is blank I can decode with the text I need, in other case the field value will be displayed.

Where I can find this piece of code?

Thanks,
M.
The topic has been locked.

Re: Insert text if custom field is blank 13 years ago #26130

  • pama
  • OFFLINE
  • Posts: 489
Hello. Code where addess is inserted is at administrator/components/com_vminvoice/helpers/invoicehtml.php
around lines 608 and 616. You can add "else" statements.
ARTIO Support Team
Last Edit: 13 years ago by pama.
The topic has been locked.
  • Page:
  • 1
User Login Empty