matlino
Forum Replies Created
-
Forum: Plugins
In reply to: [WebP Express] Webp redirection to converter on NGINX (Wordops)I messed something and now none of the files is loading. Anyway, I was able to load one of them before, the one that already exists on the server. That’s the point.
Hello @wpmudev-support2 ,
I am sorry for the delayed answer. It’s working based on your example.
For everybody else having this use case, it seems ‘json_encode’ did the trick. That’s why you cannot just copy the value from $field_data_array or use $field_data_array as an argument to ‘update_form_entry’ API method.Thank you for your help,
TomasHi @wpmudev-support1 ,
unfortunately, the fix was not implemented in v. 1.14.8.1.Tomas
Hi @wpmudevsupport16 ,
it’s a really simple use case. For example, I try to update the entry of another form inside ‘forminator_custom_form_submit_before_set_fields’ hook. If the field names I want to update (e.g. text-3) are the same I can just use $field_data_array directly to update the entry of another form successfully.add_action('forminator_custom_form_submit_before_set_fields', function($entry, $form_id, $field_data_array) { Forminator_API::update_form_entry( FORM_ID, ENTRY_ID, $field_data_array ); }
But it doesn’t work with select fields. It also doesn’t work when I create $entry_meta as in docs https://premium.wpmudev.org/docs/api-plugin-development/forminator-api-docs/. I try to extract values from both $entry and $field_data_array but if I remember correctly they are in the same format. Anyway, neither one is working.
I couldn’t update the value of a select field in any way. Although, I am able to update the values of other fields.
Tomas
- This reply was modified 3 years, 9 months ago by matlino.
This is logical default behavior but I think it’s also very confusing for somebody creating the form the first time. I also thought something is not working. Maybe incompatibility with my builder. But then I also find out it’s not working in Gutenberg…
I would propose to add some message for logged users instead of having this message blank by default. Something like “Registration form is hidden because you are logged in. You can change the settings and also this text in options…”.
Or show this info when choosing a name for a registration form while creating it.Hi @wpmudev-support1,
sounds great, thanks for update! ??Tomas
Hi @wpmudevsupport12,
this bug suddenly starts happening again. I was wondering how is it possible and then I realized, I updated the plugin. So you probably didn’t include it in an update. I am just notifying you here in case it was forgotten.Tomas
Hi @wpmudev-support1,
that sounds great! Thank you for the update ??Tomas
Hi @wpmudev-support2,
I am sorry for the late answer.Here is the form:
https://pastebin.com/X73S8F4uTomas
I am sorry for the late answer.
You are right, on the submit error it jumps to a related field, which looks great.
But when there is no error, moving between forms pages seems unintuitive. The page scrolls way too high. I would expect it to stop with the pagination timeline being the first item visible on the page.
What do you think about that?
I believe this should be now marked as resolved. But it could be a little confusing because as I see it, two issues are discussed in this thread:
1. Encoding ‘&’ sign when ‘page reload’ submit option selected making it impossible to pass parameters to redirect page.
2. Showing blank form for a couple of moments after the submit button is clicked. This happens when the ‘ajax’ submit option is selected.
So it is not possible to send parameters to the reddirect page without experiencing issue number 2.
I am sorry, I already edited the form, the upload fields are hidden. But if you will need to simulate an issue on my form, I can set it up in a test environment.
Hi @wpmudev-support1,
yes, I got v 1.14.7. I haven’t noticed anything in the release notes.You can also try on my production form:
https://www.eventmanager.sk/registracia-poskytovatela/[email protected]&company=testovaci3&street=ticha&zip=78979&city=Bardejov&web=test.com&firstname=testovaci3&surname=TEST&phone=0904999999&ico=890809809&dic=8900809Also, I am not able to submit my form when I try to upload multiple images. I click on the submit button in step 4 but nothing happens.
For anybody else who needs to change the texts of upload field, I think the easier workaround is to use jQuery:
jQuery( document ).ready(function() { jQuery(".forminator-button-upload").text("TEXT Choose file"); jQuery(".forminator-file-upload span").text("TEXT No file chosen"); });
Hi @wpmudevsupport12
this works like a charm. The text break lines are displayed exactly how they were entered into the field.Thank you!
Tomas