Problem: I have a custom URL field that my visitors populate using a front-end Form. The URL is a YouTube video URL, and I would like to display the video in an embedded player with the URL parameter rel=0 attached so no related videos are displayed. However, I do not expect my Users to add the rel=0 parameter when they enter the YouTube URL on the front-end. How can I append the URL parameter programmatically in the template when the video is displayed?
Solution: You need a custom shortcode to do this. The following can be used as a guide:
Replace your-field-slug with the slug of the field containing the URL, and adjust the height and width of the embed shortcode as needed. Render the player with the custom shortcode, like this:
Problem: I would like to display an image using a Toolset Image Block in the loop of a View. The loop has 3 columns, and I would like the image to fill the width of one of the columns.
Solution: Be sure to select an image size that is large enough to fill the available space, then use the Display Width and Display Height settings to provide a percentage-based width and height value.
Problem: I have two required generic checkbox fields in a Form. When I submit the Form with the checkboxes checked, I receive an error saying that required checkboxes fields are not checked.
Solution: Ensure a default value of 1 is applied to required checkbox fields. Otherwise the validation script will fail to validate checked checkboxes.