kemalkautsar
Forum Replies Created
-
Adam,
That works GREAT! solved.!Hi,
Yes that seems to work, however I ran into another problem.
The submit button doesnt appear (https://drive.google.com/file/d/1oK7KTncotURhS3B-8p0gIW6ruQD0D5BT/view?usp=sharing) even though both of our code has the Submit buttonsAdam Hi!
yes this is good enough! also thank you for your support on the Pro version that we are doing as well!Addition:
I also don’t need the email notification under “Email Notifications”. as you can see I have set it to blank under $notifications but its still appearing. Can you point me out how to do it? thanksZafer, Hi!
Yes my team and I already talk with Adam via the Pro support version, I have replied to his direction there too and waiting for an answer at the moment.
I will close this thread now.
Thanks!Hi Patrick,
Yes, Okay.
this project we have a Forminator Pro plugin though. Is it preferable to do it via the Forminator Pro support so you can see it from inside out?Hi Kris & the SLS team,
Yeah I was playing around and teach myself how to make proper wp shortcode while waiting on your answer (it was weekend so its understandable). and what i end up with is here:add_shortcode('wd-formshow','show_couple_form'); function show_couple_form($atts){ ? ? $a = shortcode_atts( array( ? ? ? ? 'title' => 'Header Color Selector' ? ? ), $atts ); ? ? $formi_post = get_page_by_title( $a['title'], '', 'forminator_forms' ); ? ? if ($formi_post){ ? ? ? ? $formi_post = '[forminator_form id="'.$formi_post->ID.'"]'; ? ? ? ? $execute_sc = do_shortcode($formi_post); ? ? ? ? return $execute_sc; ? ? } }
as you can see I use
get_page_by_title()
that is deprecated, but i need it in a pinch just to show the function for my customer.I will try out your function and report back to you!
Hi Pawel,
- are you using any plugin for editing user roles and permissions? Is the form set up to create an user with a custom role?
No, I have deactivate it and see whether it affect the registration process…. still having the Permissions error - is the Activate Account page accessible to non-logged in visitors normally?
Yes - would you be able to share if there’s any error code in the Dev Tools of your browser when accessing the page? To do this, right click on the page with the error, choose Inspect, switch to Network tab and refresh, see if there’s anything there in Red and after clicking on it, please share the Headers tab screenshot
I have 500 error but not sure if it caused it
https://drive.google.com/file/d/1pRWmf0JcD5J1rYHMaCK3_Lw0Ot7Xpu5h/view?usp=sharing - have you tried running a?plugin conflict test?
yes
Hi Kasia and Dmytrio. Thanks it’s solved now.
nevermind, i’ll start a new thread since it looks like it’s a different topic altogether
Adam,
Sorry to re-open the thread again. But I need some help here.
I added an Image upload field, I tried the code and refer it to the Image-1 field. But it doesn’t work. I tried to var_dump(?) the data: it says like this:["upload-1"]=> array(2) { ["id"]=> string(3) "307" ["value"]=> array(1) { ["file"]=> array(5) { ["success"]=> bool(true) ["file_name"]=> string(63) "image.jpg" ["file_url"]=> string(173) "https://websitename/filepath/to/image.jpg" ["message"]=> string(0) "" ["file_path"]=> string(175) "filepath/to/the/hosting/image.jpg" } } }
The code you gave me that I modified is like this (it doesn’t work, only gave me a result of “value”):add_shortcode( 'image1-last-entry', 'wpmu_shortcode_forminator_last_entry_field_image1' ); function wpmu_shortcode_forminator_last_entry_field_image1( $atts ) { $a = shortcode_atts( array( 'form_id' => 7266, 'field' => 'upload-1', ), $atts ); $entry = Forminator_Form_Entry_Model::get_latest_entry_by_form_id( $a['form_id'] ); if ($entry) { $html = $entry->meta_data[$a['field']][['value']['file']]; if ($html) { return $html; } }
Now, my question is: how do i get the value of “file_url” inside the array inside array(?). I just need the return value of “https://websitename/filepath/to/image.jpg”
thank you very much!Adam,
Ok, I’m going to kludge it until I can make it work. The kludge seem to work but it’s a nightmare to edit the next programmer or my future self will hate me for it.
Thanks for your help! the topic can be closed now!
best regards,
KemalAdam! Wow!
thanks for the quick help!
there is one thing i want to ask:
when I tried using the “[forminator-last-entry-field form_id=”123″, field=”text-1″]” it doesnt show? I already matched the form id and the field with the one i want, but it still doesnt show? - are you using any plugin for editing user roles and permissions? Is the form set up to create an user with a custom role?