jake
October 14, 2024, 5:20pm
1
Hi, I’m just new in tadabase, I have a form that has submit rule that will redirect to an existing page but due to some reason I have to redirect it with a new tab. Anyone who had done it in the past? Please help!
@jake
Take a look at this code:
" TB.render(‘component_84’,function(data){
data.ele.find(‘.af-form-submit’).on(‘click’,function(){
$($(‘.form-2 .af-form-submit’)[0]).click();
window.open(‘https://www.example.com/details/{pageField.recordid} 3’, ‘_blank’, ‘width=500,height=500’);
I am kind of struggling with some custom JS, so maybe can someone help me.
I have a form with 2 fields, which is filled out by a visitor (non-registered) user. The form is embedded.
Upon form submit, the visitor is redirected to a details page. The details page layout is TB default, which means that the URL contains the record ID.
My goal is to open up the details page in a new tab. I already have the code which forces this. The URL in this code is generated with the recordid
" TB.render(‘co…