Forum Replies Created
-
AuthorPosts
-
April 28, 2017 at 3:48 pm in reply to: Variable-type of 'request_value' and 'value' in $fields of piklist_save_field #8034
hirschbratMemberApril 28, 2017 at 2:05 pm in reply to: Variable-type of 'request_value' and 'value' in $fields of piklist_save_field #8032
hirschbratMemberHi,
I still have the problem, that the the value of a field (in a settings page) is saved as array, if “attributes” is set in the field definition.
If I remove the attributes array, the value is saved as value as expected.
hirschbratMemberSeems to be fixed in 0.9.9.10.
Now the posts are saved directly with the first click on submit.Thanks!
hirschbratMemberI can confirm this – all fields are shown on all tabs. The same behavior can be found in the Piklist Demo.
hirschbratMember@Steve
I tried your code and it worked for me, too.
hirschbratMemberStill the same problem in 0.9.9.10.
The fix from ndbe worked for me, but i always have to edit the pickles.js after a piklist update. Can you include this fix to the next piklist release?
in file piklist.js (parts/js folder) around line 1495 change this code:
$this.re_index($wrapper.parent(), true); $wrapper .trigger('piklistaddmore', [$wrapper, 'remove']) .remove();to this:
var $parent = $wrapper.parent(); $wrapper .trigger('piklistaddmore', [$wrapper, 'remove']) .remove(); $this.re_index($parent, true);
hirschbratMemberI got the Javascript Validation running, and the post status is preserved if validation fails.
But now I always have to click the submit button twice, to submit the post (probably the first time javascript validation runs?). This is very unintuitive because the user does not know what happened.
Is there any way to avoid the second click if validation is successful? Turns out in operation that some changes where not saved, because the author did not clicked a second time…
December 3, 2016 at 8:54 am in reply to: Help Icon not shown on front end form when not logged in #7609
hirschbratMemberThe help icon are still not shown when logged off in piklist v0.9.9.9
hirschbratMemberAny news when this bug will be fixed? I have the same problem in v 0.9.9.9.
Here my add-more field code:
piklist('field', array( 'type' => 'group' ,'label' => 'Warenkorb' ,'field' => 'fvb_order_cart' ,'add_more' => true ,'fields' => array( array( 'type' => 'select' ,'field' => 'product' ,'label' => 'Produkt' ,'columns' => 6 ,'choices' => $choices ,'conditions' => $conditions ) ,array( 'type' => 'number' ,'field' => 'price' ,'label' => 'Preis [EUR]' ,'columns' => 3 ,'value' => '0.00' ,'description' => 'This field is updated by the Select field above' ,'attributes' => array( 'min' => -10000 ,'step' => 0.01 ) ) ,array( 'type' => 'number' ,'field' => 'number' ,'label' => 'Anzahl' ,'columns' => 2 ,'value' => 1 ,'description' => 'This field is updated by the Select field above' ) ) ,'validate' => array( array( 'type' => 'fvb_resource' ,'options' => array( 'resource' => 'cart' ) ) ) ));December 3, 2016 at 8:44 am in reply to: update condition in add_more group not working in v 9.9.7 #7607
hirschbratMemberAre there any news when this bug will be fixed? Still does not work in v 0.9.9.9.
hirschbratMember@Steve
Unfortunately this does not work. The post status changes despite validation fails.
January 12, 2016 at 1:52 pm in reply to: Help Icon not shown on front end form when not logged in #5580
hirschbratMemberThank you! I will wait for the next version of piklist.
January 12, 2016 at 1:35 pm in reply to: Variable-type of 'request_value' and 'value' in $fields of piklist_save_field #5579
hirschbratMemberYes, I removed the attributes array and now value and request_value are both strings.
January 12, 2016 at 10:55 am in reply to: Variable-type of 'request_value' and 'value' in $fields of piklist_save_field #5574
hirschbratMemberadd_action( 'piklist_save_field-test_scope', 'test_fields', 10, 2 ); function test_fields($fields){ piklist::pre($fields); }January 12, 2016 at 10:32 am in reply to: Variable-type of 'request_value' and 'value' in $fields of piklist_save_field #5570
hirschbratMemberI am using version 0.9.9.7
-
AuthorPosts