Forum Replies Created
-
AuthorPosts
-
This one didn’t work :-/
It also is now showing the version number (I have versioning turned on).Is there a way to hide these 2? I haven’t added them to the dispform under rules or the tab. They are auto appearing along with the modified info. (would love to manipulate these as well if possible)
Attachments:
Works perfectly! Thank you!
Alexander,
Hey Alexander,
Is there a version of this for the Edit button? Scoured the forums and found a version for the Cancel button but not for Edit on the dispform.Save: jQuery(“input[id$=’_diidIOSaveItem’]”).val(“Submit This”);
Cancel: jQuery(“input[id$=’_diidIOGoBack’]”).val(“Cancel This”);Gave EditItem a shot but that was a no-go lol.
TIA!!
Sigh… I keep putting the block of code in, selecting it, then click the CODE button and it puts apostrophes around it, but when I save it still changes the code. Just FYI since it looks funky.
Going to email you as masking that much might make the page illegible lol.
Sigh, yep. Again, so obvious looking at it now. The issue was the quotes. And I’m usually good with modifying those. Thanks for pointing that out! In the end I used Alex’s version because after fixing the quotes, it was still giving me an error, stating the currLabel value wasn’t set, so I must have change the wrong value.
And the redirect worked great! I’m using Keith’s version for a link on a site page and Alex, using yours on the form pages.
Thanks!!
Yep, that was it. I accidentally mentioned the fields in one of my clearing functions.
Was so obvious after taking most of the weekend off. Guess I needed the break lol.
Thanks again for all of the help!
Hey Keith,
So when I use the function, errors pop up. Here’s the changes I made. Can you help me figure out what I did wrong?
Errors:
1. DFFS: There is an error in the custom JS textarea, could not complete the operation due to error 80020101.
2. DFFS Confi error in “Run these functions/trigger these rulesI’m just calling function changeSaveButton.
function changeSaveButton(Save,Submit){
var inputcontrols = $(‘input’);
alert(inputcontrols.length);
for(i = 0; i<inputcontrols.length; i++)
{
if(inputcontrols[i].type == “button” && inputcontrols[i].value == currLabel)
inputcontrols[i].value = newLabel;
}
}Thanks again! Will give this a try shortly 🙂
Thanks for the reply Keith! So already tried testing that. If I turn DFFS off, the value is captured. Turned on, the value ends up blank :-/ And this happens on 2 fields. One is a drop down with 2 values, Active and Inactive. The other is today’s date. Both fill in fine without DFFS.
-
AuthorPosts