Sales Question?
Welcome, Guest

How to manipulate data before view in the X-form?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to manipulate data before view in the X-form?

How to manipulate data before view in the X-form? 1 year ago #73241

Hey.
How to manipulate data before displaying the X-forms
First, thanks for all the great joomla component.

I have problems to sort out values ??that do not appear in deatail template. I have tried with different functions for manipulating arrays in Prepare details. The only thing I can do to fix is to remove the values ??"N / A" from the array.

foreach ($ items as $ key => $ value) {
$ items ["$ key"] ["value"] = str_replace (array ('N / A'),'', $ items ["$ key"] ["value"]);

if ($ items ["$ key"] ["value"] === "") {
unset ($ items [$ key]);
}
}

What I want is to remove the blank elements from the array that I do not want to view in Viewer. Do try the usual fuksjoner as "unset ($ items [$ key]);" but this does not work in Prepare details. Anybody can help me here?


/sem
  • sem
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.31 seconds

Flatrate Membership: Professional Subscription

Get lifetime access to all of our products and 1 year of professional support -- for just $199 USD. No limits on domains!. Includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

Get it from here

Recurring Customer Discount - 50% Off!

Get a 50% discount on our Professional Subscription if you have been purchasing a subscription from us in the past -- no matter when. The Professional Subscription includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

How to receive the discount:

  • Purchase a basic 1-Year Subscription from here.
  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and proof of your old purchase.
  • We will then upgrade your account to the Professional Subscription.

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year Basic or Professional Subscription plans.

How to receive the discount:

  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with a proof of purchase (for example a paypal receipt).
  • Await payment instructions and enjoy your membership!

About

Crosstec GmbH & Co. KG

Hohenzollernring 57

50672 Cologne, Germany

Imprint