Support » Plugin: Calculated Fields Form » Button on click event

  • Resolved pinballnate

    (@pinballnate)


    Hi,

    I just want to have some text or an image appear to the right of the button when somebody clicks on it.

    I am not very knowledgeable with coding, but can follow directions.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @pinballnate,

    The solution is simple.

    1. Insert a Div field, and select the option “2 Columns” for the “Columns” attribute in its settings.

    2. Move the button into the container.

    3. Insert into the container a “Media” field, and configure it to display the image.

    Now both fields are distributed side by side in the form.

    4. Into the attribute: “Add CSS Layout Keywords” in the settings of Media field, enter the special class name: hide

    5. Finally, enter the following piece of code as the onclick event of button field:

    
    jQuery('.cff-media-field.hide').removeClass('hide');
    

    and that’s all.
    Best regards.

    Thread Starter pinballnate

    (@pinballnate)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Button on click event’ is closed to new replies.