Extracting part of a field's value

By: lEVON YEZEGUIELIAN | Asked: 04/06/2025
ForumsCategory: General questionsExtracting part of a field's value
lEVON YEZEGUIELIAN asked 3 weeks ago

In my form, I have a hidden field that allows me to retrieve an autologin code from LoginPress.

My problem is that this code is sent by Formidable Forms in this format, for example: enable, , SZqgMEU6m4uqE8gDLebcxAPEKnGWoP, checked, 2025-04-12

However, I only need the code in the middle, without the "enable" in front and without the "checked, 2025-04-12" behind.

In short, I just want to retrieve the code, which in this example is: SZqgMEU6m4uqE8gDLebcxAPEKnGWoP

This field is a dynamic field because each WordPress user creates a different code. This code must be sent via email (via a URL).

Thank you for your help.

Attachments
1 Answers
Victor Font Staff answered 3 weeks ago

Use the substring function for whatever language you're coding in.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right