Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM6.3 post request on submit on form target="_blank"

Avatar

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
srinivas_chann1
Level 4

14-11-2019

Hi ,

I have a page were we can select assets. After selecting assets on submit we do a get request to new url with the path of the asset.

Now i would want to know how could a post request to new url with the asset path ,as when tried changing to method post the action page does not fails to load and shows an error.

<script>

jQuery(document).ready(function(){

    $("#submitBtnForBulkEditor").click(function(){ 

     var favorite = [];

            $.each($("input[name='select_field_list_man']:checked"), function(){

                favorite.push($(this).val());

            });

$("#assetsNeedBulkUpdateId").val(favorite);

        $("#bulkeditortaggingform").submit(); // Submit the form

    });

});

</script>

<form action="/content/test.html" method="get" id="bulkeditortaggingform" target="_blank">

    <input type="hidden" id="assetsNeedBulkUpdateId" name="assetsNeedUpdate" value="">

        <button type="button" id="submitBtnForBulkEditor">Submit Form</button>

</form>