Forum Discussion
_anomDiebolt_
8 years agoQrew Elite
That string inside quotes is called the selector. To use multiple selectors you list both using a comma:
$("td.label:has(label.fieldLabel b:contains(PO TOTAL)),
td.label:has(label.fieldLabel b:contains(PO Currency)")
").next("td").wrapInner("<b></b>");
- _anomDiebolt_8 years agoQrew EliteThat is because the PO Currency label is empty as you say. Try this:
$("td.label:has(label.fieldLabel b:contains(PO TOTAL)),
Let me know if it works. I have never used :empty - that's why its worth answering questions! Through our combined efforts we have advanced the great corpus of QuickBase knowledge.
td.label:has(label.fieldLabel b:empty"))
.next("td")
.wrapInner("<b></b>");
Go Team QuickBase!
BTW, this is how doctors learn their skills:- See One
- Do One
- Teach One
- BernardLucino8 years agoQrew TraineeI see.. thank you for your help Dan. You're such a great person.
- BernardLucino8 years agoQrew Trainee
$("td.label:has(label.fieldLabel b:contains(PO TOTAL)),
td.label:has(label.fieldLabel b:contains(PO Currency)")") .next("td") .wrapInner("<b></b>");
I tried using this but it didn't work. Is it because my PO Currency in the form uses an alt text which is just blank? - _anomDiebolt_8 years agoQrew EliteThere appears to be a typo. Try this::
$("td.label:has(label.fieldLabel b:contains(PO TOTAL)),
td.label:has(label.fieldLabel b:contains(PO Currency)"))
.next("td")
.wrapInner("<b></b>"); - BernardLucino8 years agoQrew TraineeBy the way, only the PO TOTAL works but didn't work for PO Currency.
- BernardLucino8 years agoQrew TraineeIt worked perfectly. Thank you Dan. ^_^
$("td.label:has(label.fieldLabel b:contains(PO TOTAL)), td.label:has(label.fieldLabel b:empty)")
.next("td")
.css({fontSize: 15, fontWeight: "bold"}); - BernardLucino8 years agoQrew TraineeAdditional Info. the script applied to all the empty label. ^_^ hehe
- _anomDiebolt_8 years agoQrew EliteDoesn't it feel glorious?
I sometimes get a bit snarkly about this whole Builder / Low Code / No Code marketing thingy. But this is the bottom line whether you work with QuickBase using native features or with script:Normally computers control our lives - more so than you may ever realize. But at whatever your skill level work or at with whatever technology your are using, when you can actually get the computer to do your bidding you experience a rush of accomplishment and freedom. Call it Builder if you want.
When a user can g - _anomDiebolt_8 years agoQrew Elite>the script applied to all the empty label. ^_^ hehe
You have to find some other criteria to select just the intend empty labels. It would be great if QuickBase coded the fids into the source code of the view page so we could use simple pinpoint selectors but it unfortunately it doesn't (it does on new and edit forms). The ids that are in the view page markup refers to the position of the row in the form:
<tr class="formRow ">
<td id="tdl_5" class="label lc">
<label class="fieldLabel">
<b>number</b>
</label>
</td>
<td id="tdf_5" class="cell cc nowrap" colspan="100"><b>5,029.36</b></td>
</tr>
You could use these ids for selection but I think they will change if you inconsequentially modify the form in another area.