Forum Replies Created
-
AuthorPosts
-
April 16, 2024 at 9:13 PM in reply to: Dynamically populating options values for select2 doesn't save to database #45229
Bomes
ParticipantHey Aishwarya,
did you find a method to programmtically add values to the select2 in the frontend? could you elaborate that?
Kind regards
Bomes
ParticipantI have finally found a solution that worked for me:
// upon start $('#kurstermine .rwmb-clone').each(function() { $(row).find('h4.rwmb-group-title').text('my caption')M }); // whenever setting is changed $('#kurstermine').on('change', 'input.rwmb-date', function() { $(row).find('h4.rwmb-group-title').text('my caption')M })Bomes
ParticipantGot that, thank you.
Any hint for good approach to format those group_title? I looked through the code a bit and it seems the group_title is only built within js on the frontend, is it?
I was just playing around with the hooks/filters for default / meta calls and didnt come to a reasonable approach. Also I was thinking about creating a helper field and wondered if I could dynamically create default values. sanitize hooks are only called upon save not on changes within the form, are they?
Bomes
Participantwhen opening up selectbox it seems like ajax could be the failure, it retrieves an html instead of the (i guess) expected json:
Uncaught SyntaxError: expected expression, got '<'from ̀term.php- so it looks like a bug, doesnt it?Bomes
ParticipantIs it already solved? I tried to add a custom dir and neither absolute nor relative paths seem to work, dropdown stays empty
June 7, 2021 at 6:37 PM in reply to: How to configure timezone for timestamp in datetime field? #28754Bomes
ParticipantI exchanged "Europe/Berlin" by date_default_timezone_get() - made it work for me though is not 100% correct.
-
AuthorPosts