Submit pieces (After submit) php code with select field value not working

  • mihaela
  • Topic Author
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela created the topic: Submit pieces (After submit) php code with select field value not working

Hello,

In End Submit pieces of the form you can fetch the submitted values with function:
ff_getSubmit('FIELDNAME');
so that is the correct command for catching a selected option, BUT in order to be able to use this function you need to put
$this -> execPieceByName('ff_InitLib');
as first line of code in your piece.

That is explained in this piece of documentation crosstec.org/en/support/online-documenta...ript-and-pieces.html .

Also, make sure to replace FIELDNAME with the Name of the filed and not the Title.

Let me know whether this resolves the problem.

Regards,

Mihaela
#234686
  • Posts: 27
  • Thank you received: 0

XaRz replied the topic: Submit pieces (After submit) php code with select field value not working

You're right Mihaela, I missed this line in the last copy&paste.

One more thing.

There is a way to check if the code is working without checking the remote function ?

Thanks anyway
#234690
  • mihaela
  • Topic Author
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela replied the topic: Submit pieces (After submit) php code with select field value not working

Hello again,

I'm glad that adding that line of code resolved the issue.

In this case, the best way to check if the code is working is to check the remote function since this is in End Submit.

Regards,

Mihaela
#234713
Moderators: ForumSupporttomeperica
Time to create page: 0.060 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

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 subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here