-
Posts
141 -
Joined
-
Last visited
Everything posted by bramwolf
-
Hey Guys! I ran into some really strange behavior when trying to save selected Selectfieldtype values from a form to a select field in a page. I have three different dropdowns in this page, all with different values and they randomly get saved en sometimes they don't. This is my setup: Form Page: Dropdown a: Dropdown a: - - V - - - V - Dropdown b: Dropdown b: - - V - - - V - Dropdown c: Dropdown c: - -V - - - V - I have no idea what is causing this since it happens completely randomly, does anybody have any ideas? Like, would it make more sense to only use a text field on the page side to recieve the value? and if so, why? Thanks in advance Gr, Bram PS: In the screenshot you can see the three filters that pick up the dropdown values and show the entries that are equal to the filter. And you can see the dropped values in the submissions.
- 1 reply
-
- formbuilder
- select
-
(and 3 more)
Tagged with:
-
Hey Manfred, Yes my language pack is installed properly, and it still doesn't work
-
When I click translate file as you describe I get a red bar with an error: does not exist or is not a directory And the page below it says: "The process returned no content."
-
Im feeling extremely retarded by now, but I installed the language support and Dutch pack. Where can I change those two urls?
-
Hey Martijn, I tried this but I keep getting undefined errors in my console: Uncaught TypeError: Cannot read property 'setDefaults' of undefined jquery.ui.datepicker-nl.js:4 Uncaught TypeError: Cannot read property 'regional' of undefined even though I did target the right element: $.datepicker.setDefaults( $.datepicker.regional[ "nl" ] ); $('#Inputfield_datum').datepicker({ numberOfMonths: 1, showButtonPanel: true, dateFormat : 'dd/mm/yy' }); The form can be found here: http://www.cafepool.nl/reserveren/ Thanks guys
-
Thanks for your reply man! Atleast now I now that this doesn't work, and why thats the case. Does anybody have a different possible solution?
-
Hey BitPoet, Thanks for the reply! What I gather from your post is that setlocale has to go before rending the form and that strftime is not going to work since I can't feed it html snippets. so I did this, and later on echoed the form, but this still doesn't work setlocale(LC_TIME, 'NL_nl'); $form = $forms->render('reserveren');
-
Hey Arjen, Thanks for your detailed explanation I got it to work and it outputted a Dutch version of the current timestamp. However, I'm trying to convert one field of a FormBuilder form to Dutch and I still can't seem to get it to do that. Just using the code without a specific variable or timestamp to convert still outputs the form field in english, and trying to get it to convert all the form data like I tried here, also doesn't work: $form = $forms->render('reserveren'); setlocale(LC_TIME, 'NL_nl'); echo strftime('%e %B %Y om %H:%M', $form); Any ideas how to do this? Thanks for your help so far Gr, Bram
-
Okay let me try to be a little clearer. I get that I should use both the setlocale and the strftime function codes, but I don't know in which file and at what place I should insert those for this to work. Could you maybe help me with that? thanx
-
Hey Martijn, I tried setting locale in config.php but not with setlocale and I didn't use strftime. Where, and how would you suggest to use those in order the change the datetime field? Thanks in advance
-
I think so, this is what phpinfo gave me: _SERVER["HTTP_ACCEPT_LANGUAGE"] nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4,af;q=0.2,de;q=0.2
-
Hey Guys, I'm super lost with this and am hoping somebody can help me! All I want is for the days of a datetime field used in a form to change from English to Dutch. I've tried change locale in config.php, I've tried installing a dutch language, I've tried ProcessLanguageTranslate but all to no avail, the stupid thing is still in english Could someone please give me a list of steps to follow in order to achieve this? Thanks alot in advance! Gr, Bram
-
Hey Alan, Actually, both work, although they're different. This is how you would use the doc version: $session->set(test, "test"); echo $session->get(test); // outputs: test Maybe the thing you did wrong was not echoing the get line? I think they left that out of the docs since you can use the variable for multiple operations and not only echo it. for instance, $test_works = $session->get(test) . " worked out fine"; // outputs: test worked out fine Hope this helps
- 6 replies
-
- 1
-
-
- variables
- user action
-
(and 1 more)
Tagged with:
-
AHA! Thanx man, i did not know that! Maybe it's time to actually read all the docs {:} thanks
-
I was? I never saw anything that pointed me towards this problem? Is there some specific place I should look for the error? Since i only thing I recall is seeing "The error had been logged because you are logged in as administrator" a few times, but never a specific error other than Internal server error..
-
Uh, where? I only got a Internal server error displayed in my browser, nothing in the console?
-
Ah yes!! Thank you Very much I Tried maybe 15 different things next to my code at the top here, But I never applied OutputFormatting, so i kept getting the error. Thanks!
-
Hey Guys, I've been trying to load a field from a different page, update it's value and save it. that's all,... and i CANT get it to work! Extremely frustrating < $bestelnummer = $fields->get('bestelnummer'); $bestelnummer++; $fields->save($bestelnummer); echo $bestelnummer; Can someone please help this poor little retarded boy out? Thanks guys!
-
Hey arjen, Thanx for the reply! I already got how I could store that info in for example session variables, but not how I could have my page do that after processing my form. Could you maybe sketch a example of how I could have the info from that form submitted into those variables after submission? Or maybe show me how I could post the data to a different page using the form? Thanx for your help man
- 6 replies
-
- variables
- user action
-
(and 1 more)
Tagged with:
-
Hey Guys, I've been working with Processwire for a while now but mostly only showed the content that was set in the back-end of Processwire by the site admin. Now I would like to store information but I find it hard to figure out where to start. The problem is dat Processwire uses PHP to get and set new values, which is only a server side language. What i want to do is have variables set bases on user behavior. The Case: I'm building a really small site that sells two items. A have a product page where people can insert a quantity of the item in a form input field and than click add to cart. http://www.hayplaybag.com/producten However I have no clue how to convert that information into say, a global variable or a field on the checkout page so that I could read it again on the shopping cart page and present the amount they ordered. How would you guys go about doing such things? I would love to hear your thoughts Thanks! Bram
- 6 replies
-
- variables
- user action
-
(and 1 more)
Tagged with:
-
Hey Apeisa, Yes I do, it's at: http://www.askwadraat.nl/hme4daagse thanks for having a look
-
Hi Christophe, Thanks for your reply! I pretty much got css covered So naturally I already tried adjusting the height that way, but it has no effect. And the weird behavior is the same on all embedding options. So when using easy embed option A it makes my form 944px high as well :\ Could you maybe think of something else that might cause this? Thanks Bram
-
Hi Guys! I bought the form builder module and it's great! Much, Much easier than coding all those forms myself But now! I embedded it and even though the form only has about 5 entry lines, the form height is made 944px, while I think it only needs about 500px. Does anyone know where I can change this? I can't find it anywhere, it's not in the css for of the form. This happens when I embed via a line in the text editor and when I do a template embed all the same. Thanks in advance! Bram Wolf
-
Yes! That's it Much better than my original thought Thanks for your help! Bram
-
Awesooommeee! Thanks man! That was precicely what I was looking for, never thought to look for that under a page field I created this like shown above with an extra selector to get users with a specific role. Now on the frond end, how do I go about checking these values? something like this? [ sketch programming -> not actual language ] foreach ($page->tags as $tag) { if ($user->name == $tag->name) { if ($tag->value == 1 ) { Show news item } } { something like this? thanx! Gr, Bram