Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi, i have a problem with colorbox_node and some another module
i install colorbox_node , webform, webform_ajax and availability_calendars
availability_calendars have a some form with submit button for send value to webform
i add class to submit by this code
function MYMODULE_form_availability_calendar_booking_formlet_form_alter(&$form, &$form_state, $form_id) {
$form['actions']['submit']['#attributes']['class'][] = 'colorbox-node';
}
and now i have a message in popup window
"No url found on element"
and colorbox not open.
if make custom link like
<a href="../webformpage/" class="colorbox-node"> webform in colorbox <a/>
it's work good.
help please with error.
Comments
Comment #1
TorreyToomajanian CreditAttribution: TorreyToomajanian as a volunteer commentedA submit button is an input or button element, not an anchor element. Colorbox is meant to only work with anchor elements.
Comment #2
iLLin CreditAttribution: iLLin commentedComment #3
fervilas CreditAttribution: fervilas commentedHello, I am getting the same error using a standard menu link. I just write in the path: node/519. As soon as I activate the module Colorbox Node I get this error: No url found on element. Any help please? Thanks!
Comment #4
iLLin CreditAttribution: iLLin commentedPlease paste in your actual code.
Comment #5
fervilas CreditAttribution: fervilas commentedHello. Thanks for your answer. Could you tell me which code you would like to see? I get the error as soon as I activate the module. I don't even set up any link and I have the issue.
Comment #6
iLLin CreditAttribution: iLLin commentedTurn the module on in a fresh install, you may have an issue with your setup. Maybe that will help you track down what's going on.
Comment #7
fervilas CreditAttribution: fervilas commentedI found the problem. I was adding to the link the classes specified in "extras" inside the module configuration, instead of adding the class "colorbox-node". I worked when I added the class "colorbox-node" and I didn't activate any extra.
Thanks for your help!